Re: [Boost-bugs] [Boost C++ Libraries] #3384: Double-quoted arguments including spaces are divided by Boost.Test. (was: Double-quoted arguments including spaces can't be used with Boost.Test.)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3384: Double-quoted arguments including spaces are divided by Boost.Test. (was: Double-quoted arguments including spaces can't be used with Boost.Test.)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-22 00:33:23


#3384: Double-quoted arguments including spaces are divided by Boost.Test.
----------------------------------------------+-----------------------------
 Reporter: Shuji Yamasaki <shu@…> | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: test
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: test |
----------------------------------------------+-----------------------------
Changes (by Shuji Yamasaki <shu@…>):

  * version: Boost 1.40.0 => Boost 1.41.0
  * milestone: Boost 1.41.0 => Boost 1.42.0

Comment:

 I wrote a test program and fixed the problem, though I don't know whether
 the problem is really a bug or not.

 Test Program:
 {{{
 #include <boost/test/included/unit_test.hpp>
 #include <iostream>
 #include <vector>

 using namespace std;
 using namespace boost;
 using namespace boost::unit_test;

 test_suite* init_unit_test_suite(int argc, char* argv[])
 {
   cout << argc - 1 << endl;
   for(int i = 1; i < argc; ++i)
     cout << argv[i] << endl;

   return 0;
 }
 }}}

 Compile it into test.exe and run it as
 {{{
 test "first second"
 }}}
 , and then you'll get a result such as:[[br]]
 2[[br]]
 first[[br]]
 second[[br]]

 After patching:[[br]]
 1[[br]]
 first second[[br]]

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3384#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC