test: Remove boost::split from getarg_tests.cpp

This commit is contained in:
MacroFake 2022-04-29 14:37:46 +02:00
parent 26296eba3d
commit fafa727612
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -13,7 +13,6 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include <boost/algorithm/string.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE(getarg_tests, BasicTestingSetup) BOOST_FIXTURE_TEST_SUITE(getarg_tests, BasicTestingSetup)
@ -21,8 +20,9 @@ BOOST_FIXTURE_TEST_SUITE(getarg_tests, BasicTestingSetup)
void ResetArgs(ArgsManager& local_args, const std::string& strArg) void ResetArgs(ArgsManager& local_args, const std::string& strArg)
{ {
std::vector<std::string> vecArg; std::vector<std::string> vecArg;
if (strArg.size()) if (strArg.size()) {
boost::split(vecArg, strArg, IsSpace, boost::token_compress_on); vecArg = SplitString(strArg, ' ');
}
// Insert dummy executable name: // Insert dummy executable name:
vecArg.insert(vecArg.begin(), "testbitcoin"); vecArg.insert(vecArg.begin(), "testbitcoin");