1.0.5.15: fix SB-BSD-SOCKETS tests on chrooted NetBSD
authorJuho Snellman <jsnell@iki.fi>
Mon, 30 Apr 2007 21:01:42 +0000 (21:01 +0000)
committerJuho Snellman <jsnell@iki.fi>
Mon, 30 Apr 2007 21:01:42 +0000 (21:01 +0000)
         * Handle dangling /dev/log symlink
         * Patch by Richard Kreuter

contrib/sb-bsd-sockets/tests.lisp
version.lisp-expr

index 420c123..66f8707 100644 (file)
       ;; something, so don't fail this test just because the file is
       ;; unavailable, or if it's a symlink to some weird character
       ;; device.
-      (when (and (probe-file "/dev/log")
-                 (sb-posix:s-issock
-                  (sb-posix::stat-mode (sb-posix:stat "/dev/log"))))
+      (when (block nil
+              (handler-bind ((sb-posix:syscall-error
+                              (lambda (e)
+                                (declare (ignore e))
+                                (return nil))))
+                (sb-posix:s-issock
+                 (sb-posix::stat-mode (sb-posix:stat "/dev/log")))))
         (let ((s (make-instance 'local-socket :type :datagram)))
           (format t "Connecting ~A... " s)
           (finish-output)
index 5105df6..57e57ee 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.5.14"
+"1.0.5.15"