aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests/process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit_tests/process.cpp')
-rw-r--r--test/unit_tests/process.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit_tests/process.cpp b/test/unit_tests/process.cpp
index a126f86..715364f 100644
--- a/test/unit_tests/process.cpp
+++ b/test/unit_tests/process.cpp
@@ -82,4 +82,11 @@ BOOST_FIXTURE_TEST_CASE(echo_stdin_from_file, WithEchoExe) {
BOOST_TEST(stdout8 == stdin8);
}
+BOOST_FIXTURE_TEST_CASE(echo_runas, WithEchoExe) {
+ const CommandLine cmd_line{get_echo_exe(), {"foo", "bar"}};
+ const auto process = Process::runas(cmd_line);
+ process.wait();
+ BOOST_TEST(process.get_exit_code() == 0);
+}
+
BOOST_AUTO_TEST_SUITE_END()