HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
591924e
)
(call-with-output-string): Test proc closing port.
author
Kevin Ryde
<user42@zip.com.au>
Thu, 2 Oct 2003 00:17:16 +0000
(
00:17
+0000)
committer
Kevin Ryde
<user42@zip.com.au>
Thu, 2 Oct 2003 00:17:16 +0000
(
00:17
+0000)
test-suite/tests/ports.test
patch
|
blob
|
blame
|
history
diff --git
a/test-suite/tests/ports.test
b/test-suite/tests/ports.test
index
9b9eb2f
..
0c29e6d
100644
(file)
--- a/
test-suite/tests/ports.test
+++ b/
test-suite/tests/ports.test
@@
-303,6
+303,13
@@
(pass-if "output check"
(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)))
+
\f
;;;; Soft ports. No tests implemented yet.