mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-07-01 15:20:34 +02:00
posix.test should handle missing ttyname command
* test-suite/tests/posix.test ("ttyname"): handle undefined case
This commit is contained in:
parent
b2a50874bb
commit
57355ee431
1 changed files with 7 additions and 5 deletions
|
@ -171,11 +171,13 @@
|
|||
|
||||
(pass-if-exception "non-tty argument" exception:system-error
|
||||
;; This used to crash in 1.8.1 and earlier.
|
||||
(let ((file (false-if-exception
|
||||
(open-output-file "/dev/null"))))
|
||||
(if (not file)
|
||||
(throw 'unsupported)
|
||||
(ttyname file)))))
|
||||
(if (not (defined? 'ttyname))
|
||||
(throw 'unsupported)
|
||||
(let ((file (false-if-exception
|
||||
(open-output-file "/dev/null"))))
|
||||
(if (not file)
|
||||
(throw 'unsupported)
|
||||
(ttyname file))))))
|
||||
|
||||
;;
|
||||
;; utimes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue