Boost C++ Libraries: Ticket #6032: Program options within init_unit_test_suite are incorrect when using path and whitespaces https://svn.boost.org/trac10/ticket/6032 <p> Hi, </p> <p> I use the component program options and unit tests of boost 1.47 on Windows. </p> <p> When running a unit test I have to check for some additional options (other than the boost options). So I use test_suite* init_unit_test_suite( int argc, char* argv[] ) An option may look like this </p> <p> -W "$(<a class="missing wiki">OutDir</a>)" </p> <p> and <a class="missing wiki">OutDir</a> may contain any path with whitespaces. However, the function init_unit_test_suite receives an incorrect number of arguments in argc. I guess that boost unit test also parses options with program_options so I guess program options may be the problem. However, it could also be the unit test component, I guess. </p> <p> So the given arguments above (-W ...) produces argc = 4: </p> <p> argv<a class="missing changeset" title="No changeset 0 in the repository">[0]</a> = exe path </p> <p> argv<a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a> = -W </p> <p> argv<a class="changeset" href="https://svn.boost.org/trac10/changeset/2" title="Add Boost Disclaimer">[2]</a> = First half of the path with whitespace </p> <p> argv<a class="changeset" href="https://svn.boost.org/trac10/changeset/3" title="Tweak disclaimer text">[3]</a> = Second half of the path with whitespace </p> <p> However, argv 2 and 3 should be in the same position. </p> <p> THX </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6032 Trac 1.4.3 Vladimir Prus Wed, 19 Oct 2011 16:14:24 GMT owner, component changed https://svn.boost.org/trac10/ticket/6032#comment:1 https://svn.boost.org/trac10/ticket/6032#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Vladimir Prus</span> to <span class="trac-author">Gennadiy Rozental</span> </li> <li><strong>component</strong> <span class="trac-field-old">program_options</span> → <span class="trac-field-new">test</span> </li> </ul> <p> Boost.Test has it's own command-line parsing library, so I am reassigning this issue. </p> Ticket chriswimmer@… Wed, 19 Oct 2011 18:59:47 GMT <link>https://svn.boost.org/trac10/ticket/6032#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6032#comment:2</guid> <description> <p> Interesting that they use their own implementation. Wasn't it tested by unit tests? :) </p> </description> <category>Ticket</category> </item> <item> <author>Nils Gladitz <gladitz@…></author> <pubDate>Tue, 08 Nov 2011 14:22:58 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/6032#comment:3 https://svn.boost.org/trac10/ticket/6032#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">gladitz@…</span> added </li> </ul> Ticket Gennadiy Rozental Wed, 30 Sep 2015 22:31:59 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/6032#comment:4 https://svn.boost.org/trac10/ticket/6032#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.60.0</span> </li> </ul> <p> This is addressed in trunk and is going to be released with next version of Boost </p> Ticket Raffi Enficiaud Tue, 27 Oct 2015 12:47:00 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/6032#comment:5 https://svn.boost.org/trac10/ticket/6032#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> reopened for keeping track of the change </p> Ticket Raffi Enficiaud Tue, 27 Oct 2015 12:47:05 GMT owner, status changed https://svn.boost.org/trac10/ticket/6032#comment:6 https://svn.boost.org/trac10/ticket/6032#comment:6 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Gennadiy Rozental</span> to <span class="trac-author">Raffi Enficiaud</span> </li> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">new</span> </li> </ul> Ticket Raffi Enficiaud Tue, 27 Oct 2015 12:53:44 GMT status changed https://svn.boost.org/trac10/ticket/6032#comment:7 https://svn.boost.org/trac10/ticket/6032#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Raffi Enficiaud Mon, 02 Nov 2015 10:10:21 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6032#comment:8 https://svn.boost.org/trac10/ticket/6032#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> merged to master </p> Ticket