Commit 141970eb authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

fix popen unit test

parent 130fa9a2
......@@ -32,7 +32,7 @@ TestSuite(popen, .description = "Bi-directional popen");
Test(popen, no_shell)
{
Popen proc("/usr/bin/tee", {"tee", "test"});
PopenStream proc("/usr/bin/tee", {"tee", "test"});
proc.cout() << "Hello World" << std::endl;
proc.cout().flush();
......@@ -52,7 +52,7 @@ Test(popen, no_shell)
Test(popen, shell)
{
Popen proc("echo \"Hello World\"", {}, {}, std::string(), true);
PopenStream proc("echo \"Hello World\"", {}, {}, std::string(), true);
std::string str, str2;
......@@ -67,7 +67,7 @@ Test(popen, shell)
Test(popen, wd)
{
Popen proc("/usr/bin/pwd", {"pwd"}, {}, "/usr/lib");
PopenStream proc("/usr/bin/pwd", {"pwd"}, {}, "/usr/lib");
std::string wd;
......@@ -81,7 +81,7 @@ Test(popen, wd)
Test(popen, env)
{
Popen proc("echo $MYVAR", {}, {{"MYVAR", "TESTVAL"}}, std::string(), true);
PopenStream proc("echo $MYVAR", {}, {{"MYVAR", "TESTVAL"}}, std::string(), true);
std::string var;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment