aboutsummaryrefslogtreecommitdiff
path: root/tests/process/driver.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-12-29 03:32:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-01-05 15:53:29 +0300
commitc61d6e14c08fec7658dbdc33c16b5feeece08fbf (patch)
treef090dbd27fadabebf0d685ad6bd3f9a899b18fa7 /tests/process/driver.cxx
parent0e8c95a08f87922575c9f400399258dba54df1ca (diff)
Add process_exit
Diffstat (limited to 'tests/process/driver.cxx')
-rw-r--r--tests/process/driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/process/driver.cxx b/tests/process/driver.cxx
index ac8f54d..d2a8172 100644
--- a/tests/process/driver.cxx
+++ b/tests/process/driver.cxx
@@ -265,12 +265,12 @@ main (int argc, const char* argv[])
// Note that if to create as just process(0) then the
// process(const char* args[], int=0, int=1, int=2) ctor is being called.
//
- process p (optional<process::status_type> (0));
+ process p (optional<process_exit> (process_exit (0)));
assert (p.wait ()); // "Exited" successfully.
}
{
- process p (optional<process::status_type> (1));
+ process p (optional<process_exit> (process_exit (1)));
assert (!p.wait ()); // "Exited" with an error.
}