We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1147e72 commit e24a25dCopy full SHA for e24a25d
src/test/system_tests.cpp
@@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(run_command)
54
}
55
{
56
// Return non-zero exit code, with error message for stderr
57
- const std::string command{"python3 -c 'import sys; print(\"err\", file=sys.stderr); sys.exit(2)'"};
+ const std::string command{"sh -c 'echo err 1>&2 && false'"};
58
const std::string expected{"err"};
59
BOOST_CHECK_EXCEPTION(RunCommandParseJSON(command), std::runtime_error, [&](const std::runtime_error& e) {
60
const std::string what(e.what());
0 commit comments