Boost logo

Boost :

Subject: Re: [boost] [test-matrx] problem with testing expected compile-time failures.
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-02-27 10:38:45


AMDG

On 02/27/2016 03:07 AM, Andrzej Krzemienski wrote:
> Hi Everyone,
> I need help trying to understand how the testing of desired compile-time
> failures work. I know the concept in general, but I observe something
> strange in test results for Optional in Master:
> http://www.boost.org/development/tests/master/developer/optional.html
>
> I have a test called optional_test_ref_convert_assign_const_int_prevented
> <https://github.com/boostorg/optional/blob/master/test/optional_test_ref_convert_assign_const_int_prevented.cpp>
> It is marked (intentionally) "cf": "only try to compile and expect a
> failure".But on tester sun- 12.4_stlport4 the test results are marked as
> "comp" which indicates an *unexpected* compile-time failure.
>
> This confuses me:
> * I marked the test "expect compile-time failure".
> * Test results are marked as "unexpected compile-time failure".
>

It failed because the test actually did compile.

> Am I missing something? Not to mention that there is no compiler output
> included:

There is no output because the compiler didn't produce any output.

> http://www.boost.org/development/tests/master/developer/output/oracle-intel-S2-12-4-stlport4-boost-bin-v2-libs-optional-test-optional_test_ref_convert_assign_const_int_prevented-test-sun-12-4_stlport4-release-threading-multi.html
>

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk