Boost C++ Libraries: Ticket #4776: Mods to search_n test to show msvc failure https://svn.boost.org/trac10/ticket/4776 <p> The range trunk test matrix shows a couple stray failures for msvc tests. As you probably suspect, the problem seems to be in msvc's std lib. </p> <p> These mods to the test prove it. (See attached patch.) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4776 Trac 1.4.3 Jim Bell <jim@…> Sat, 23 Oct 2010 13:45:21 GMT attachment set https://svn.boost.org/trac10/ticket/4776 https://svn.boost.org/trac10/ticket/4776 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_range_search_n.patch</span> </li> </ul> Ticket Jim Bell <jim@…> Sat, 23 Oct 2010 14:18:19 GMT <link>https://svn.boost.org/trac10/ticket/4776#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4776#comment:1</guid> <description> <p> Here's what it generates... </p> <pre class="wiki">Running 1 test case... unknown location(0): fatal error in "test_search_n": C:\Program Files\VS8\VC\INCLUDE\list(213) : Assertion failed: list iterator not dereferencable ..\libs\range\test\algorithm_test\search_n.cpp(34): last checkpoint: Pre-std: value: 9; n:2 *** 1 failure detected in test suite "Master Test Suite" </pre> </description> <category>Ticket</category> </item> <item> <author>Jim Bell <jim@…></author> <pubDate>Sat, 23 Oct 2010 14:26:21 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4776#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4776#comment:2</guid> <description> <p> A more complete patch &amp; results... </p> <pre class="wiki">Running 1 test case... unknown location(0): fatal error in "test_search_n": C:\Program Files\VS8\VC\INCLUDE\list(213) : Assertion failed: list iterator not dereferencable ..\libs\range\test\algorithm_test\search_n.cpp(34): last checkpoint: Pre-std: class std::list&lt;int,class std::allocator&lt;int&gt; &gt;; value: 9; n:2; size:9 *** 1 failure detected in test suite "Master Test Suite" </pre> </description> <category>Ticket</category> </item> <item> <author>Jim Bell <jim@…></author> <pubDate>Sat, 23 Oct 2010 14:26:42 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/4776 https://svn.boost.org/trac10/ticket/4776 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_range_search_n_v2.patch</span> </li> </ul> Ticket Jim Bell <jim@…> Sat, 23 Oct 2010 21:41:36 GMT <link>https://svn.boost.org/trac10/ticket/4776#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4776#comment:3</guid> <description> <p> Also, can this mode of failure for relevant platforms be marked as an "expected" failure, allowing the entire range library to not be marked as fail/yellow on the main matrix? </p> </description> <category>Ticket</category> </item> <item> <author>Jim Bell <jim@…></author> <pubDate>Mon, 25 Oct 2010 13:48:12 GMT</pubDate> <title>severity changed https://svn.boost.org/trac10/ticket/4776#comment:4 https://svn.boost.org/trac10/ticket/4776#comment:4 <ul> <li><strong>severity</strong> <span class="trac-field-old">Optimization</span> → <span class="trac-field-new">Regression</span> </li> </ul> Ticket Neil Groves Sun, 14 Nov 2010 17:52:54 GMT status, severity changed https://svn.boost.org/trac10/ticket/4776#comment:5 https://svn.boost.org/trac10/ticket/4776#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Regression</span> → <span class="trac-field-new">Problem</span> </li> </ul> <p> I'm going to tackle this slightly differently. There isn't an "expected" failure of Boost.Range this is unfortunately an expected failure of the Visual C++ standard library as you have described. Hence it is misleading to make my Boost.Range test fail since the algorithm actually works. This test result should pass. I shall modify the test to check for the correct result rather than test for equivalence to the standard library implementation. </p> Ticket Jim Bell <jim@…> Sun, 14 Nov 2010 19:36:08 GMT <link>https://svn.boost.org/trac10/ticket/4776#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4776#comment:6</guid> <description> <p> Excellent. A passing test is much more valuable than an explained failure. </p> <p> I think it's very useful/helpful (and interesting) to see the standard library failure as my patch shows, and would love it to be kept around for the record, but if you can't find a place for it, I understand. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Neil Groves</dc:creator> <pubDate>Thu, 23 Dec 2010 00:13:38 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4776#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4776#comment:7</guid> <description> <p> I have altered the implementation as proposed earlier. It no longer uses the standard library implementation in either the core implementation or in the test. I shall monitor the progress on the trunk regression tests before a subsequent merge to the release branch. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Neil Groves</dc:creator> <pubDate>Thu, 23 Dec 2010 18:14:51 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/4776#comment:8 https://svn.boost.org/trac10/ticket/4776#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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.46.0</span> </li> </ul> Ticket