[Boost-bugs] [Boost C++ Libraries] #13228: argument parsing errors when unit_test_main() call in a loop more than ones

Subject: [Boost-bugs] [Boost C++ Libraries] #13228: argument parsing errors when unit_test_main() call in a loop more than ones
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-09-21 19:54:40


#13228: argument parsing errors when unit_test_main() call in a loop more than ones
------------------------------+-------------------------------
 Reporter: claus.klein@… | Owner: Gennadiy Rozental
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.65.0 | Severity: Problem
 Keywords: |
------------------------------+-------------------------------
 I want to run my test suit in a loop to detect race conditions in a multi
 threading environment.
 You may see at my example test suit.

 The problems does not occur with long options!

 {{{
 Claus-MBP:AgentProV4 clausklein$ ./demo_test -l all -2
 loops requested: 2
 0: ./demo_test
 1: -l
 2: all
 Running 1 test case...
 Entering test module "Demo"
 demo_test.cpp:11: Entering test case "QueuedThreadPoolLoad_test"
 simple compare
 demo_test.cpp:16: info: check i == 0 has passed
 demo_test.cpp:11: Leaving test case "QueuedThreadPoolLoad_test"; testing
 time: 88us
 Leaving test module "Demo"; testing time: 133us

 *** No errors detected
 0: ./demo_test
 1: -l
 2: all
 loops left: 1
 Boost.Test WARNING: token "all" does not correspond to the Boost.Test
 argument
                     and should be placed after all Boost.Test arguments
 and the -- separator.
                     For example: demo_test --random -- all
 Boost.Test WARNING: token "all" does not correspond to the Boost.Test
 argument
                     and should be placed after all Boost.Test arguments
 and the -- separator.
                     For example: demo_test --random -- all
 Running 1 test case...

 *** No errors detected
 Claus-MBP:AgentProV4 clausklein$ ./demo_test --random
 --run_test=QueuedThreadPoolLoad_test -2
 loops requested: 2
 0: ./demo_test
 1: --random
 2: --run_test=QueuedThreadPoolLoad_test
 Running 1 test case...

 *** No errors detected
 0: ./demo_test
 1: --random
 2: --run_test=QueuedThreadPoolLoad_test
 loops left: 1
 Running 1 test case...

 *** No errors detected

 Claus-MBP:AgentProV4 clausklein$ ./demo_test -i
 0: ./demo_test
 1: -i
 Running 1 test case...
 Platform: Mac OS
 Compiler: Clang version 8.0.0 (clang-800.0.42.1)
 STL : libc++ version 3700
 Boost : 1.65.1

 *** No errors detected
 Claus-MBP:AgentProV4 clausklein$
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13228>
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-09-21 20:00:21 UTC