mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01:00
test: Use shell builtins in run_command test case
This commit is contained in:
parent
33adc7521c
commit
7bd3ee62f6
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ BOOST_AUTO_TEST_CASE(run_command)
|
|||
}
|
||||
{
|
||||
// Return non-zero exit code, with error message for stderr
|
||||
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'"};
|
||||
const std::string expected{"err"};
|
||||
BOOST_CHECK_EXCEPTION(RunCommandParseJSON(command), std::runtime_error, [&](const std::runtime_error& e) {
|
||||
const std::string what(e.what());
|
||||
|
|
Loading…
Add table
Reference in a new issue