master: Possibly avoid trying to call nonexistent openpty
snuglas via Sbcl-commits <[email protected]> Fri, 01 May 2026 04:32:16 +0000
| Newsgroups | gmane.lisp.steel-bank.cvs |
|---|---|
| Message-ID | <[email protected]> |
The branch "master" has been updated in SBCL:
via 26add0a4ad21b7ab2ee10a10cd95b31051f174a0 (commit)
from bc13902c286979773016e3e7b84c6049ff53c320 (commit)
- Log -----------------------------------------------------------------
commit 26add0a4ad21b7ab2ee10a10cd95b31051f174a0
Author: Douglas Katzman <[email protected]>
Date: Fri May 1 00:31:15 2026 -0400
Possibly avoid trying to call nonexistent openpty
---
contrib/sb-posix/posix-tests.lisp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/contrib/sb-posix/posix-tests.lisp b/contrib/sb-posix/posix-tests.lisp
index e901ef79a..de20f3704 100644
--- a/contrib/sb-posix/posix-tests.lisp
+++ b/contrib/sb-posix/posix-tests.lisp
@@ -718,7 +718,13 @@
(= new (sb-posix:cfgetospeed termios))))
t)
+;;; openpty is not in libc on many Linux distros. Instead it is in /usr/lib/libutil.so
+;;; which is not linked because nothing else needs it. So maybe skip a test
#-win32
+(when (sb-sys:find-dynamic-foreign-symbol-address "openpty")
+ (push :have-openpty *features*))
+
+#+have-openpty
(deftest tcsetattr.smoke.pty
(let (master-fd slave-fd)
(unwind-protect
-----------------------------------------------------------------------
hooks/post-receive
--
SBCL