summaryrefslogtreecommitdiff
path: root/tests/run.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run.scm')
-rw-r--r--tests/run.scm11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/run.scm b/tests/run.scm
index f537ad8..4e3bb8a 100644
--- a/tests/run.scm
+++ b/tests/run.scm
@@ -35,9 +35,10 @@
'(a b c)
(read (run/port (echo "(a b c)"))))
- (test "Simple run/file"
- "blah\n"
- (with-input-from-file (run/file (echo "blah")) read-all)))
+ (let ((tmpfile (run/file (echo "blah"))))
+ (test "Simple run/file"
+ "blah\n"
+ (with-input-from-file tmpfile read-all))))
(test-group "Subprocesses"
(let ((outfile "outfile"))
@@ -96,4 +97,8 @@
#f
(|| (false) (epf (sh -c "echo hi && false") (- 1))))))
+;; TODO: Find a way to test that the input port didn't get replaced by
+;; one from a subshell. This happened before, but not sure how
+;; to detect this except running it manually from the REPL.
+
(test-exit) \ No newline at end of file