mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 10:19:26 +02:00
test: Fix "echo" subtest in the system_tests for Windows
This commit is contained in:
@ -58,10 +58,8 @@ BOOST_AUTO_TEST_CASE(run_command)
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
// Windows requires single quotes to prevent escaping double quotes from the JSON...
|
const UniValue result = RunCommandParseJSON("cmd.exe /c echo {\"success\": true}");
|
||||||
const UniValue result = RunCommandParseJSON("echo '{\"success\": true}'");
|
|
||||||
#else
|
#else
|
||||||
// ... but Linux and macOS echo a single quote if it's used
|
|
||||||
const UniValue result = RunCommandParseJSON("echo \"{\"success\": true}\"");
|
const UniValue result = RunCommandParseJSON("echo \"{\"success\": true}\"");
|
||||||
#endif
|
#endif
|
||||||
BOOST_CHECK(result.isObject());
|
BOOST_CHECK(result.isObject());
|
||||||
|
Reference in New Issue
Block a user