test: Remove boost::split from getarg_tests.cpp
This commit is contained in:
1 file changed
+3
-3
@@ -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");
|
||||||
|
|||||||
Reference in new issue
Block a user