Skip to content

Commit c8f9147

Browse files
committed
test: Avoid collision with valid path names in getarg_tests/logargs
1 parent 50422b7 commit c8f9147

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/getarg_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ BOOST_AUTO_TEST_CASE(logargs)
429429
const auto okaylog = std::make_pair("-okaylog", ArgsManager::ALLOW_ANY);
430430
const auto dontlog = std::make_pair("-dontlog", ArgsManager::ALLOW_ANY | ArgsManager::SENSITIVE);
431431
SetupArgs(local_args, {okaylog_bool, okaylog_negbool, okaylog, dontlog});
432-
ResetArgs(local_args, "-okaylog-bool -nookaylog-negbool -okaylog=public -dontlog=private");
432+
ResetArgs(local_args, "-okaylog-bool -nookaylog-negbool -okaylog=public -dontlog=private42");
433433

434434
// Everything logged to debug.log will also append to str
435435
std::string str;
@@ -447,7 +447,7 @@ BOOST_AUTO_TEST_CASE(logargs)
447447
BOOST_CHECK(str.find("Command-line arg: okaylog-negbool=false") != std::string::npos);
448448
BOOST_CHECK(str.find("Command-line arg: okaylog=\"public\"") != std::string::npos);
449449
BOOST_CHECK(str.find("dontlog=****") != std::string::npos);
450-
BOOST_CHECK(str.find("private") == std::string::npos);
450+
BOOST_CHECK(str.find("private42") == std::string::npos);
451451
}
452452

453453
BOOST_AUTO_TEST_SUITE_END()

0 commit comments

Comments
 (0)