diff --git a/test-suite/tests/posix.test b/test-suite/tests/posix.test index c959bb2f7..ef8d3f47a 100644 --- a/test-suite/tests/posix.test +++ b/test-suite/tests/posix.test @@ -166,6 +166,8 @@ (pass-if-exception "non-tty argument" exception:system-error ;; This used to crash in 1.8.1 and earlier. + (unless (defined? 'ttyname) + (throw 'unsupported)) (let ((file (false-if-exception (open-output-file "/dev/null")))) (if (not file)