mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Replace pstreams with Boost.Process
This commit is contained in:
committed by
Mohammad Al-Turany
parent
e462d6f597
commit
778c8e16bb
@@ -21,24 +21,6 @@ namespace test
|
||||
extern std::string runTestDevice; /// Path to test device executable.
|
||||
extern std::string mqConfig; /// Path to FairMQ device config file.
|
||||
|
||||
/**
|
||||
* Result type for execute function. Holds captured stderr output and exit code.
|
||||
*/
|
||||
struct execute_result {
|
||||
std::string error_out;
|
||||
int exit_code;
|
||||
};
|
||||
|
||||
/**
|
||||
* Execute given command in forked process and capture stderr output
|
||||
* and exit code.
|
||||
*
|
||||
* @param[in] cmd Command to execute
|
||||
* @param[in] log_prefix How to prefix each captured output line with
|
||||
* @return Captured error output and exit code
|
||||
*/
|
||||
auto execute(std::string cmd, std::string log_prefix = "") -> execute_result;
|
||||
|
||||
} /* namespace test */
|
||||
} /* namespace mq */
|
||||
} /* namespace fair */
|
||||
|
Reference in New Issue
Block a user