diff options
Diffstat (limited to 'src/test/system_tests.cpp')
-rw-r--r-- | src/test/system_tests.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/system_tests.cpp b/src/test/system_tests.cpp index e97eab2c00..32aee2bce5 100644 --- a/src/test/system_tests.cpp +++ b/src/test/system_tests.cpp @@ -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()); |