diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-12-15 10:38:34 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-12-15 14:09:30 +0200 |
commit | 507c009c1ee68a4c3ad100f765bf854307d5bf39 (patch) | |
tree | 965658e5fd4a34d975568bfe37c1a3b8bc3ff3da /src | |
parent | 60b5795133a2f6bed5d68340c5f5b6c225fa9cdb (diff) | |
download | bitcoin-507c009c1ee68a4c3ad100f765bf854307d5bf39.tar.xz |
test: Fix "echo" subtest in the system_tests for Windows
Diffstat (limited to 'src')
-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()); |