mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-05 04:46:21 -04:00
some test changes
This commit is contained in:
parent
5e1a9c9088
commit
de49e349dc
BIN
test/test_env
BIN
test/test_env
Binary file not shown.
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user