X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-posix%2Fposix-tests.lisp;h=9f74b5127f1adeb376c52d4b30c2174e16e7988c;hb=0b85642df140fabd8f0a91c85edff0543dc359b1;hp=a0c17b7090f34158cd0f8b03e8a35861151b3ca7;hpb=0d1056d441a1fa50b1fb9dfa2b8ea660bf179a3a;p=sbcl.git diff --git a/contrib/sb-posix/posix-tests.lisp b/contrib/sb-posix/posix-tests.lisp index a0c17b7..9f74b51 100644 --- a/contrib/sb-posix/posix-tests.lisp +++ b/contrib/sb-posix/posix-tests.lisp @@ -251,6 +251,19 @@ (logand mode sb-posix::s-iwoth)) 0) +;; Test that stat can take a second argument. +(deftest stat.5 + (let* ((stat-1 (sb-posix:stat "/")) + (inode-1 (sb-posix:stat-ino stat-1)) + (stat-2 (sb-posix:stat "/bin/sh" + stat-1)) + (inode-2 (sb-posix:stat-ino stat-2))) + (values + (eq stat-1 stat-2) + (/= inode-1 inode-2))) + t + t) + ;;; FIXME: add tests for carrying a stat structure around in the ;;; optional argument to SB-POSIX:STAT @@ -453,6 +466,18 @@ (not (sb-posix:getpwnam "root")) nil) +#-win32 +(deftest grent.1 + ;; make sure that we found something + (not (sb-posix:getgrgid 0)) + nil) + +#-win32 +(deftest grent.2 + ;; make sure that we found something + (not (sb-posix:getgrnam "wheel")) + nil) + #+nil ;; Requires root or special group + plus a sensible thing on the port (deftest cfget/setispeed.1 @@ -624,3 +649,8 @@ (sb-posix:unlink non-link-pathname)))) #.sb-posix:enotdir) ) + +(deftest getcwd.1 + ;; FIXME: something saner, please + (equal (sb-unix::posix-getcwd) (sb-posix:getcwd)) + t)