mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-05 06:50:21 +02:00
(call-with-output-string): Test proc closing port.
This commit is contained in:
parent
029328497d
commit
aa7242492a
1 changed files with 8 additions and 0 deletions
|
@ -298,6 +298,14 @@
|
||||||
(pass-if "output check"
|
(pass-if "output check"
|
||||||
(string=? text result))))
|
(string=? text result))))
|
||||||
|
|
||||||
|
(with-test-prefix "call-with-output-string"
|
||||||
|
|
||||||
|
;; In Guile 1.6.4, closing the port resulted in a segv, check that doesn't
|
||||||
|
;; occur.
|
||||||
|
(pass-if-exception "proc closes port" exception:wrong-type-arg
|
||||||
|
(call-with-output-string close-port)))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;;;; Soft ports. No tests implemented yet.
|
;;;; Soft ports. No tests implemented yet.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue