aboutsummaryrefslogtreecommitdiff
path: root/tests/process-run/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/process-run/driver.cxx')
-rw-r--r--tests/process-run/driver.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/process-run/driver.cxx b/tests/process-run/driver.cxx
index 765bd7d..1c41659 100644
--- a/tests/process-run/driver.cxx
+++ b/tests/process-run/driver.cxx
@@ -99,6 +99,13 @@ main (int argc, const char* argv[])
assert (run (fdnull (), 2, 2, p, "-c", "-o", "abc"));
assert (run (fdnull (), 1, 1, p, "-c", "-e", "abc"));
+ {
+ fdpipe pipe (fdopen_pipe ());
+ process pr (process_start (pipe, process::pipe (-1, 1), 2, p, "-c", "-i"));
+ pipe.close ();
+ assert (pr.wait ());
+ }
+
// Argument conversion.
//
assert (run (0, 1, 2, p, "-c", "-o", "abc"));