MCPcopy Create free account
hub / github.com/arun11299/cpp-subprocess / test_shell

Function test_shell

test/test_subprocess.cc:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void test_shell()
41{
42#ifdef __USING_WINDOWS__
43 auto obuf = check_output({"cmake", "--version"}, shell{false});
44#else
45 auto obuf = check_output({"ls", "-l"}, shell{false});
46#endif
47 std::cout << obuf.buf.data() << std::endl;
48}
49
50void test_sleep()
51{

Callers

nothing calls this directly

Calls 1

check_outputFunction · 0.85

Tested by

no test coverage detected