Boost C++ Libraries: Ticket #2258: Test annotation problems https://svn.boost.org/trac10/ticket/2258 <p> With x86 linux gcc-4.0.1, I get this for the member_ccs test: </p> <blockquote> <p> member_ccs.cpp:17:5: error: #error "test not supported with this compiler/platform" </p> </blockquote> <p> and the test is annotated thusly: </p> <blockquote> <p> Not all compilers/platforms implement nonstandard calling conventions. </p> </blockquote> <blockquote> <p> With GCC/x86 this failure reflects <a class="ext-link" href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29328"><span class="icon">​</span>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29328</a> . </p> </blockquote> <p> But the nonme the nonmember_ccs test *also* fails with the same error, and this annotation: </p> <blockquote> <p> Not all compilers/platforms implement nonstandard calling conventions. </p> </blockquote> <p> i.e. there is no reference to a GCC bug. </p> <p> Points: </p> <ul><li>The error message for member_ccs is inconsistent with the note about the gcc bug. </li></ul><ul><li>The function types library documentation barely mentions "calling conventions" and doesn't explain what "nonstandard" means in this context. For example, does extern "C" count? </li></ul><ul><li>Since I am running x86/GCC, the note about the GCC bug much more specific than the other part of the note, so I assumed that it applied. That would mean that my platform implements a nonstandard calling convention, but a compiler bug is causing the test to fail. </li></ul><ul><li>However, that interpretation would be inconsistent with the annotation for nonmember_ccs. </li></ul><ul><li>I suspect that my platform does not support nonstandard calling convention, and the bug only applies on platforms where GCC supports nonstandard calling conventions (e.g. Windows), and does not apply to me. If so, the annotation should be more specific about the platforms on which the note applies. </li></ul><ul><li>The error message should be better, e.g.: "this platform does not support nonstandard calling conventions; the test is irrelevant here" </li></ul><ul><li>A test that always succeeds when the platform doesn't support nonstandard calling conventions would yield far more reliable results than the overly general wildcard matching of failure annotations you have now, which makes a failure on any platform look as though it were expected in the testing chart. </li></ul><p> (Also posted to the boost list because I want to start a discussion about test markup there) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2258 Trac 1.4.3 Dave Abrahams Mon, 25 Aug 2008 21:51:01 GMT description changed https://svn.boost.org/trac10/ticket/2258#comment:1 https://svn.boost.org/trac10/ticket/2258#comment:1 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/2258?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket