Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arun11299/cpp-subprocess
/ test_env
Function
test_env
test/test_env.cc:8–16 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
#ifndef __USING_WINDOWS__
7
8
void test_env()
9
{
10
int st= Popen(
"./env_script.sh"
, environment{{
11
{
"NEW_ENV1"
,
"VALUE-1"
},
12
{
"NEW_ENV2"
,
"VALUE-2"
},
13
{
"NEW_ENV3"
,
"VALUE-3"
}
14
}}).wait();
15
assert (st == 0);
16
}
17
18
#endif
19
Callers
1
main
Function · 0.85
Calls
2
Popen
Class · 0.85
wait
Method · 0.80
Tested by
no test coverage detected