Skip to content

Commit 507c009

Browse files
committed
test: Fix "echo" subtest in the system_tests for Windows
1 parent 60b5795 commit 507c009

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/system_tests.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ BOOST_AUTO_TEST_CASE(run_command)
5858
}
5959
{
6060
#ifdef WIN32
61-
// Windows requires single quotes to prevent escaping double quotes from the JSON...
62-
const UniValue result = RunCommandParseJSON("echo '{\"success\": true}'");
61+
const UniValue result = RunCommandParseJSON("cmd.exe /c echo {\"success\": true}");
6362
#else
64-
// ... but Linux and macOS echo a single quote if it's used
6563
const UniValue result = RunCommandParseJSON("echo \"{\"success\": true}\"");
6664
#endif
6765
BOOST_CHECK(result.isObject());

0 commit comments

Comments
 (0)