Boost C++ Libraries: Ticket #13228: argument parsing errors when unit_test_main() is called in a loop more than ones https://svn.boost.org/trac10/ticket/13228 <p> 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. </p> <p> The problems does not occur with long options! </p> <pre class="wiki">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$ </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13228 Trac 1.4.3 claus.klein@… Thu, 21 Sep 2017 19:57:21 GMT attachment set https://svn.boost.org/trac10/ticket/13228 https://svn.boost.org/trac10/ticket/13228 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">demo_test.cpp</span> </li> </ul> Ticket claus.klein@… Fri, 22 Sep 2017 20:49:19 GMT summary changed https://svn.boost.org/trac10/ticket/13228#comment:1 https://svn.boost.org/trac10/ticket/13228#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">argument parsing errors when unit_test_main() call in a loop more than ones</span> → <span class="trac-field-new">argument parsing errors when unit_test_main() is called in a loop more than ones</span> </li> </ul> Ticket