0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-03 09:56:38 -05:00

test: Fix "echo" subtest in the system_tests for Windows

This commit is contained in:
Hennadii Stepanov 2021-12-15 10:38:34 +02:00
parent 60b5795133
commit 507c009c1e
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -58,10 +58,8 @@ BOOST_AUTO_TEST_CASE(run_command)
}
{
#ifdef WIN32
// Windows requires single quotes to prevent escaping double quotes from the JSON...
const UniValue result = RunCommandParseJSON("echo '{\"success\": true}'");
const UniValue result = RunCommandParseJSON("cmd.exe /c echo {\"success\": true}");
#else
// ... but Linux and macOS echo a single quote if it's used
const UniValue result = RunCommandParseJSON("echo \"{\"success\": true}\"");
#endif
BOOST_CHECK(result.isObject());