mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
test: Remove boost::split from getarg_tests.cpp
This commit is contained in:
parent
26296eba3d
commit
fafa727612
1 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue