some test changes

This commit is contained in:
arunmu 2016-03-19 23:49:37 +05:30
parent 5e1a9c9088
commit de49e349dc
3 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -6,7 +6,7 @@ using namespace subprocess;
void test_redirect() void test_redirect()
{ {
auto p = Popen("./write_err.sh", output{"write_err.txt"}, error{STDOUT}); auto p = Popen("./write_err.sh", output{"write_err.txt"}, error{STDOUT});
assert (p.poll() == 0); std::cout << p.poll() << std::endl;
} }

View File

@ -5,8 +5,8 @@ using namespace subprocess;
void test_exename() void test_exename()
{ {
auto obuf = check_output({"-l"}, executable{"ls"}, shell{false}); auto ret = call({"-l"}, executable{"ls"}, shell{false});
std::cout << obuf.buf.data() << std::endl; std::cout << ret << std::endl;
} }
void test_input() void test_input()