mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-05 04:46:21 -04:00

* revert channges to quote argument * ci: add cmake draft * ci: enable suprocess tests * cleanup some warnings * ci: disable nonworking windows tests * ci: set timeout * ci: disable nonworking tests on windows * ci: remove travis --------- Co-authored-by: xoviat <xoviat@users.noreply.github.com>
19 lines
296 B
C++
19 lines
296 B
C++
#include <iostream>
|
|
#include <subprocess.hpp>
|
|
|
|
using namespace subprocess;
|
|
|
|
void test_redirect()
|
|
{
|
|
auto p = Popen("./write_err.sh", output{"write_err.txt"}, error{STDOUT});
|
|
std::cout << p.poll() << std::endl;
|
|
|
|
}
|
|
|
|
int main() {
|
|
#ifndef __USING_WINDOWS__
|
|
test_redirect();
|
|
#endif
|
|
return 0;
|
|
}
|