| 18 | // |
| 19 | |
| 20 | static std::vector<char *> to_cstr_vec(const std::vector<std::string> & v) { |
| 21 | std::vector<char *> r; |
| 22 | r.reserve(v.size() + 1); |
| 23 | for (const auto & s : v) { |
| 24 | r.push_back(const_cast<char *>(s.c_str())); |
| 25 | } |
| 26 | r.push_back(nullptr); |
| 27 | return r; |
| 28 | } |
| 29 | |
| 30 | struct run_proc_result { |
| 31 | std::string output; |
no test coverage detected