mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-17 03:00:21 +02:00
Changes from arch/CVS synchronization
This commit is contained in:
parent
8edec42a34
commit
3b58a13b8b
8 changed files with 50 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
;;;; posix.test --- Test suite for Guile POSIX functions. -*- scheme -*-
|
||||
;;;;
|
||||
;;;; Copyright 2003, 2004, 2006 Free Software Foundation, Inc.
|
||||
;;;; Copyright 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
|
||||
;;;;
|
||||
;;;; This program is free software; you can redistribute it and/or modify
|
||||
;;;; it under the terms of the GNU General Public License as published by
|
||||
|
@ -17,7 +17,8 @@
|
|||
;;;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
;;;; Boston, MA 02110-1301 USA
|
||||
|
||||
(use-modules (test-suite lib))
|
||||
(define-module (test-suite test-posix)
|
||||
:use-module (test-suite lib))
|
||||
|
||||
|
||||
;; FIXME: The following exec tests are disabled since on an i386 debian with
|
||||
|
@ -145,3 +146,19 @@
|
|||
(putenv "FOO=")
|
||||
(unsetenv "FOO")
|
||||
(not (getenv "FOO"))))
|
||||
|
||||
;;
|
||||
;; ttyname
|
||||
;;
|
||||
|
||||
(with-test-prefix "ttyname"
|
||||
|
||||
(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)))))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue