summaryrefslogtreecommitdiff
path: root/tests/zlib.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/zlib.scm')
-rw-r--r--tests/zlib.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/zlib.scm b/tests/zlib.scm
index 5455240a71..f71609b7c5 100644
--- a/tests/zlib.scm
+++ b/tests/zlib.scm
@@ -57,7 +57,16 @@
(match (waitpid pid)
((_ . status)
(and (zero? status)
- (port-closed? parent)
+
+ ;; PORT itself isn't closed but its underlying file
+ ;; descriptor must have been closed by 'gzclose'.
+ (catch 'system-error
+ (lambda ()
+ (seek (fileno parent) 0 SEEK_CUR)
+ #f)
+ (lambda args
+ (= EBADF (system-error-errno args))))
+
(bytevector=? received data))))))))))))
(test-end)