[Boost-bugs] [Boost C++ Libraries] #6859: Boost.Test eats away last empty command line parameter

Subject: [Boost-bugs] [Boost C++ Libraries] #6859: Boost.Test eats away last empty command line parameter
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-03 17:05:23


#6859: Boost.Test eats away last empty command line parameter
-----------------------------------------------+----------------------------
 Reporter: Pavel Ivanov <paivanof@…> | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
-----------------------------------------------+----------------------------
 If I create a unit test using Boost.Test framework and run it like this:

 ./unit_test -some_param "" -other_param ""

 then after framework initialization I get argc == 4 and argv containing
 only 3 command line parameters: "-some_param", "" and "-other_param". The
 last empty parameter gets eaten away. If the last parameters is not empty
 then everything works normally.

 I believe removing check "if (index != argc-1)" from argv_traverser::init
 in boost/test/utils/runtime/cla/argv_traverser.ipp should fix the problem.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6859>
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:09 UTC