diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-11-09 09:28:46 +0000 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-11-09 09:30:21 +0000 |
commit | c8f91478c10affdfba8e52200c85379052f4e1b1 (patch) | |
tree | 7f83c8985e14aeaecfeb981c7e5553f0aab71c04 /src | |
parent | 50422b770a40f5fa964201d1e99fd6b5dc1653ca (diff) | |
download | bitcoin-c8f91478c10affdfba8e52200c85379052f4e1b1.tar.xz |
test: Avoid collision with valid path names in `getarg_tests/logargs`
Diffstat (limited to 'src')
-rw-r--r-- | src/test/getarg_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/getarg_tests.cpp b/src/test/getarg_tests.cpp index 70dd137e22..3643b80d5f 100644 --- a/src/test/getarg_tests.cpp +++ b/src/test/getarg_tests.cpp @@ -429,7 +429,7 @@ BOOST_AUTO_TEST_CASE(logargs) const auto okaylog = std::make_pair("-okaylog", ArgsManager::ALLOW_ANY); const auto dontlog = std::make_pair("-dontlog", ArgsManager::ALLOW_ANY | ArgsManager::SENSITIVE); SetupArgs(local_args, {okaylog_bool, okaylog_negbool, okaylog, dontlog}); - ResetArgs(local_args, "-okaylog-bool -nookaylog-negbool -okaylog=public -dontlog=private"); + ResetArgs(local_args, "-okaylog-bool -nookaylog-negbool -okaylog=public -dontlog=private42"); // Everything logged to debug.log will also append to str std::string str; @@ -447,7 +447,7 @@ BOOST_AUTO_TEST_CASE(logargs) BOOST_CHECK(str.find("Command-line arg: okaylog-negbool=false") != std::string::npos); BOOST_CHECK(str.find("Command-line arg: okaylog=\"public\"") != std::string::npos); BOOST_CHECK(str.find("dontlog=****") != std::string::npos); - BOOST_CHECK(str.find("private") == std::string::npos); + BOOST_CHECK(str.find("private42") == std::string::npos); } BOOST_AUTO_TEST_SUITE_END() |