(call-with-output-string): Test proc closing port.
authorKevin Ryde <user42@zip.com.au>
Thu, 2 Oct 2003 00:17:16 +0000 (00:17 +0000)
committerKevin Ryde <user42@zip.com.au>
Thu, 2 Oct 2003 00:17:16 +0000 (00:17 +0000)
test-suite/tests/ports.test

index 9b9eb2f..0c29e6d 100644 (file)
     (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.