X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-bsd-sockets%2Ftests.lisp;h=5d15ab03d32ec45dc786b3f45dd6e89221a0505e;hb=4ed3f0d08c3a57a6762018d9622f253ab9d0f2b6;hp=dc59b94aa4df9b3a182f6691e5dba5a9e7611f48;hpb=94862904357802272f86ef42f9d5deda519c8a89;p=sbcl.git diff --git a/contrib/sb-bsd-sockets/tests.lisp b/contrib/sb-bsd-sockets/tests.lisp index dc59b94..5d15ab0 100644 --- a/contrib/sb-bsd-sockets/tests.lisp +++ b/contrib/sb-bsd-sockets/tests.lisp @@ -135,10 +135,14 @@ Tests are in the file tests.lisp and also make good examples. (deftest simple-local-client (progn - ;; SunOS (Solaris) and Darwin systems don't have a socket at - ;; /dev/log. We might also be building in a chroot or something, - ;; so don't fail this test just because the file is unavailable - (when (probe-file "/dev/log") + ;; SunOS (Solaris) and Darwin systems don't have a socket at + ;; /dev/log. We might also be building in a chroot or + ;; 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")))) (let ((s (make-instance 'local-socket :type :datagram))) (format t "Connecting ~A... " s) (finish-output)