1.0.39.10: cleanup sb-posix tests for darwin
authorCyrus Harmon <ch-sbcl@bobobeach.com>
Fri, 11 Jun 2010 22:31:49 +0000 (22:31 +0000)
committerCyrus Harmon <ch-sbcl@bobobeach.com>
Fri, 11 Jun 2010 22:31:49 +0000 (22:31 +0000)
 * check for the error codes darwin gives back

 * use :latin-1 for *default-c-string-external-format* in readdir test

contrib/sb-posix/posix-tests.lisp
version.lisp-expr

index 9739323..549910b 100644 (file)
       (sb-posix:mkdir #-win32 "/" #+win32 "C:/" 0)
     (sb-posix:syscall-error (c)
       (sb-posix:syscall-errno c)))
-  #-win32
-  #.sb-posix::eexist
+  #+darwin
+  #.sb-posix:eisdir
   #+win32
-  #.sb-posix:eacces)
+  #.sb-posix:eacces
+  #-(or darwin win32)
+  #.sb-posix::eexist)
 
 (define-eacces-test mkdir.error.3
   (let* ((dir (merge-pathnames
       (sb-posix:rmdir #-win32 "/" #+win32 "C:/")
     (sb-posix:syscall-error (c)
       (sb-posix:syscall-errno c)))
-  #-win32
-  #.sb-posix::ebusy
+  #+darwin
+  #.sb-posix:eisdir
   #+win32
-  #.sb-posix::eacces)
+  #.sb-posix::eacces
+  #-(or darwin win32)
+  #.sb-posix::ebusy)
 
 (deftest rmdir.error.4
   (let* ((dir (ensure-directories-exist
   nil)
 
 (deftest readdir.1
-  (let ((dir (sb-posix:opendir "/")))
+  (let ((dir (sb-posix:opendir "/"))
+        (sb-alien::*default-c-string-external-format* :latin-1))
     (unwind-protect
        (block dir-loop
          (loop for dirent = (sb-posix:readdir dir)
index b4542ea..27d6cbf 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.39.9"
+"1.0.39.10"