mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix popen unit test
This commit is contained in:
parent
c6559a5b83
commit
227f00c687
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue