summaryrefslogtreecommitdiff
path: root/tests/utils.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils.scm')
-rw-r--r--tests/utils.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/utils.scm b/tests/utils.scm
index adac5d43815..85daa3db919 100644
--- a/tests/utils.scm
+++ b/tests/utils.scm
@@ -142,6 +142,14 @@
142 (append pids1 pids2))) 142 (append pids1 pids2)))
143 (equal? (get-bytevector-all decompressed) data))))) 143 (equal? (get-bytevector-all decompressed) data)))))
144 144
145(test-assert "filtered-port, does not exist"
146 (let* ((file (search-path %load-path "guix.scm"))
147 (input (open-file file "r0b")))
148 (let-values (((port pids)
149 (filtered-port '("/does/not/exist") input)))
150 (any (compose (negate zero?) cdr waitpid)
151 pids))))
152
145(false-if-exception (delete-file temp-file)) 153(false-if-exception (delete-file temp-file))
146(test-equal "fcntl-flock wait" 154(test-equal "fcntl-flock wait"
147 42 ; the child's exit status 155 42 ; the child's exit status