aboutsummaryrefslogtreecommitdiff
path: root/src/test/system_tests.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-12-15 10:38:34 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-12-15 14:09:30 +0200
commit507c009c1ee68a4c3ad100f765bf854307d5bf39 (patch)
tree965658e5fd4a34d975568bfe37c1a3b8bc3ff3da /src/test/system_tests.cpp
parent60b5795133a2f6bed5d68340c5f5b6c225fa9cdb (diff)
downloadbitcoin-507c009c1ee68a4c3ad100f765bf854307d5bf39.tar.xz
test: Fix "echo" subtest in the system_tests for Windows
Diffstat (limited to 'src/test/system_tests.cpp')
-rw-r--r--src/test/system_tests.cpp4
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());