| 23 | namespace fuzzer { |
| 24 | |
| 25 | int ExecuteCommand(const Command &Cmd) { |
| 26 | std::string CmdLine = Cmd.toString(); |
| 27 | int exit_code = system(CmdLine.c_str()); |
| 28 | if (WIFEXITED(exit_code)) |
| 29 | return WEXITSTATUS(exit_code); |
| 30 | if (WIFSIGNALED(exit_code) && WTERMSIG(exit_code) == SIGINT) |
| 31 | return Fuzzer::InterruptExitCode(); |
| 32 | return exit_code; |
| 33 | } |
| 34 | |
| 35 | void DiscardOutput(int Fd) { |
| 36 | FILE* Temp = fopen("/dev/null", "w"); |
no test coverage detected