Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Apr 29, 2022

No need for boost, as there are no tabs.

Can be tested with:

diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp
index 50b5078110..ad6a888ad0 100644
--- a/src/test/rpc_tests.cpp
+++ b/src/test/rpc_tests.cpp
@@ -29,6 +29,7 @@ public:
 
 UniValue RPCTestingSetup::CallRPC(std::string args)
 {
+Assert(args.find('\t')==std::string::npos);
     std::vector<std::string> vArgs;
     boost::split(vArgs, args, boost::is_any_of(" \t"));
     std::string strMethod = vArgs[0];

Copy link
Member

@fanquake fanquake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK fad35e9

@maflcko maflcko merged commit 26296eb into bitcoin:master Apr 29, 2022
@maflcko maflcko deleted the 2204-test-boost-🏓 branch April 29, 2022 12:13
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Apr 29, 2022
fad35e9 test: Remove boost::split from rpc_tests.cpp (MacroFake)

Pull request description:

  No need for boost, as there are no tabs.

  Can be tested with:

  ```diff
  diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp
  index 50b5078..ad6a888ad0 100644
  --- a/src/test/rpc_tests.cpp
  +++ b/src/test/rpc_tests.cpp
  @@ -29,6 +29,7 @@ public:

   UniValue RPCTestingSetup::CallRPC(std::string args)
   {
  +Assert(args.find('\t')==std::string::npos);
       std::vector<std::string> vArgs;
       boost::split(vArgs, args, boost::is_any_of(" \t"));
       std::string strMethod = vArgs[0];

ACKs for top commit:
  fanquake:
    utACK fad35e9

Tree-SHA512: 3df789a222b407d61ad549adc4bbded00705d7c3db07472c31ce0e82216fe3ae27724b7f0ee3e85084bdf405cc28185e85487c9a7001620d6654fda77bab8eb3
kwvg added a commit to kwvg/dash that referenced this pull request Dec 21, 2022
kwvg added a commit to kwvg/dash that referenced this pull request Dec 26, 2022
kwvg added a commit to kwvg/dash that referenced this pull request Jan 3, 2023
kwvg added a commit to kwvg/dash that referenced this pull request Jan 13, 2023
kwvg added a commit to kwvg/dash that referenced this pull request Jan 15, 2023
kwvg added a commit to kwvg/dash that referenced this pull request Jan 19, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Apr 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants