mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-05 12:56:23 -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>
26 lines
412 B
C++
26 lines
412 B
C++
#include <iostream>
|
|
#include <subprocess.hpp>
|
|
|
|
using namespace subprocess;
|
|
|
|
#ifndef __USING_WINDOWS__
|
|
|
|
void test_env()
|
|
{
|
|
int st= Popen("./env_script.sh", environment{{
|
|
{"NEW_ENV1", "VALUE-1"},
|
|
{"NEW_ENV2", "VALUE-2"},
|
|
{"NEW_ENV3", "VALUE-3"}
|
|
}}).wait();
|
|
assert (st == 0);
|
|
}
|
|
|
|
#endif
|
|
|
|
int main() {
|
|
#ifndef __USING_WINDOWS__
|
|
test_env();
|
|
#endif
|
|
return 0;
|
|
}
|