Replace pstreams with Boost.Process

This commit is contained in:
Alexey Rybalchenko
2018-01-22 11:42:22 +01:00
committed by Mohammad Al-Turany
parent e462d6f597
commit 778c8e16bb
11 changed files with 110 additions and 78 deletions

View File

@@ -16,16 +16,17 @@ namespace
using namespace std;
using namespace fair::mq::test;
using namespace fair::mq::tools;
auto RunTransferTimeout(string transport) -> void
{
size_t session{fair::mq::tools::UuidHash()};
stringstream cmd;
cmd << runTestDevice << " --id transfer_timeout_" << transport << " --control static --severity DEBUG "
cmd << runTestDevice << " --id transfer_timeout_" << transport << " --control static "
<< "--session " << session << " --color false --mq-config \"" << mqConfig << "\"";
auto res = execute(cmd.str());
cerr << res.error_out;
cerr << res.console_out;
exit(res.exit_code);
}