diff --git a/test/test_env b/test/test_env index 7922692..8634626 100755 Binary files a/test/test_env and b/test/test_env differ diff --git a/test/test_err_redirection.cc b/test/test_err_redirection.cc index ae1dc1a..24cbb91 100644 --- a/test/test_err_redirection.cc +++ b/test/test_err_redirection.cc @@ -6,7 +6,7 @@ using namespace subprocess; void test_redirect() { auto p = Popen("./write_err.sh", output{"write_err.txt"}, error{STDOUT}); - assert (p.poll() == 0); + std::cout << p.poll() << std::endl; } diff --git a/test/test_subprocess.cc b/test/test_subprocess.cc index 28fe895..d02aeb8 100755 --- a/test/test_subprocess.cc +++ b/test/test_subprocess.cc @@ -5,8 +5,8 @@ using namespace subprocess; void test_exename() { - auto obuf = check_output({"-l"}, executable{"ls"}, shell{false}); - std::cout << obuf.buf.data() << std::endl; + auto ret = call({"-l"}, executable{"ls"}, shell{false}); + std::cout << ret << std::endl; } void test_input()