| 4 | using namespace subprocess; |
| 5 | |
| 6 | void test_exename() |
| 7 | { |
| 8 | #ifdef __USING_WINDOWS__ |
| 9 | auto ret = call({"--version"}, executable{"cmake"}, shell{false}); |
| 10 | #else |
| 11 | auto ret = call({"-l"}, executable{"ls"}, shell{false}); |
| 12 | #endif |
| 13 | std::cout << ret << std::endl; |
| 14 | } |
| 15 | |
| 16 | void test_input() |
| 17 | { |