Changeset View
Changeset View
Standalone View
Standalone View
src/test/test_bitcoin_main.cpp
Show All 39 Lines | CustomArgumentsFixture() { | ||||
std::set<std::string> testArgs = { | std::set<std::string> testArgs = { | ||||
"-phononactivationtime", | "-phononactivationtime", | ||||
}; | }; | ||||
for (const auto &arg : testArgs) { | for (const auto &arg : testArgs) { | ||||
gArgs.AddArg(arg, "", false, OptionsCategory::HIDDEN); | gArgs.AddArg(arg, "", false, OptionsCategory::HIDDEN); | ||||
} | } | ||||
if (!gArgs.ParseParameters(utf::master_test_suite().argc, | const auto &master_test_suite = utf::master_test_suite(); | ||||
utf::master_test_suite().argv, error)) { | if (!gArgs.ParseParameters(master_test_suite.argc, | ||||
master_test_suite.argv, error)) { | |||||
throw utf::setup_error(error); | throw utf::setup_error(error); | ||||
} | } | ||||
} | } | ||||
~CustomArgumentsFixture(){}; | ~CustomArgumentsFixture(){}; | ||||
}; | }; | ||||
BOOST_GLOBAL_FIXTURE(CustomArgumentsFixture); | BOOST_GLOBAL_FIXTURE(CustomArgumentsFixture); |