aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-12-14 14:24:38 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2017-12-15 13:38:33 +0300
commit53b4f58c78e21cbc442891c2ce2a2b99a32e47bc (patch)
treef2b892650367a44332d7a169ede8aa9e60e6a3c8 /tests
parentceb8f4abba2cfc7ac51385fa59693c641151c8d2 (diff)
Add process::pipe struct, extend process API
Diffstat (limited to 'tests')
-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"));