0.8.5.16:
[sbcl.git] / contrib / sb-posix / posix-tests.lisp
index c95359e..14f04b0 100644 (file)
       (sb-posix:syscall-errno c)))
   #.sb-posix::enotdir)
 
+#-sunos ; Apparently gives EINVAL on SunOS 8, which doesn't make sense
 (deftest rmdir.error.3
   (handler-case
       (sb-posix:rmdir "/")
       (sb-posix:syscall-error (c)
        (delete-file file)
        (sb-posix:rmdir dir)
-       (sb-posix:syscall-errno c))))
-  #.sb-posix::enotempty)
+       (let ((errno (sb-posix:syscall-errno c)))
+         ;; documented by POSIX
+         (or (= errno sb-posix::eexist) (= errno sb-posix::enotempty))))))
+  t)
 
 (deftest rmdir.error.5
   (let* ((dir (merge-pathnames