how to mark test as "expected fail" for some toolsets

View: New views
3 Messages — Rating Filter:   Alert me  

how to mark test as "expected fail" for some toolsets

by Gunter Winkler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'd like to mark the begin_end test of uBLAS as compile-fail for MSVC
7.1 ([1]). However I was not able to figure out how this works.

Does anyone have some insights (or maybe a patch) to do this?

[1]
http://www.boost.org/development/tests/trunk/developer/output/daw-msvc71-boost-bin-v2-libs-numeric-ublas-test-begin_end-test-msvc-7-1-debug-threading-multi.html 

mfg
Gunter


_______________________________________________
ublas mailing list
ublas@...
http://lists.boost.org/mailman/listinfo.cgi/ublas
Sent to: lists@...

signature.asc (204 bytes) Download Attachment

Re: [boost] how to mark test as "expected fail" for some toolsets

by Thomas Klimpel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I'd like to mark the begin_end test of uBLAS as compile-fail for MSVC
> 7.1 ([1]). However I was not able to figure out how this works.

What do you mean by compile-fail? Do you want to test that the test fails to compile with msvc-7.1?
I tried to use a separate begin_end-cf target for this, but I didn't succeed in excluding it from build for the non msvc-7.1 toolsets.

> Does anyone have some insights (or maybe a patch) to do this?

The attached patch excludes the begin_end test from build for the msvc-7.1 toolset.

_______________________________________________
ublas mailing list
ublas@...
http://lists.boost.org/mailman/listinfo.cgi/ublas
Sent to: lists@...

deactivate-msvc-7.1.patch (502 bytes) Download Attachment

Re: [boost] how to mark test as "expected fail" for some toolsets

by Thomas Klimpel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> > I'd like to mark the begin_end test of uBLAS as compile-fail for MSVC
> > 7.1 ([1]). However I was not able to figure out how this works.
>
> What do you mean by compile-fail? Do you want to test that the test fails to compile with msvc-7.1?
> I tried to use a separate begin_end-cf target for this, but I didn't succeed in excluding it from build for the non msvc-7.1 toolsets.

Excluding seems to be difficult, but switching between "run" and "compile-fail" depending on <toolset>msvc-7.1 seems to work (see attachment). However, having a test with the same name test different things on different toolsets doesn't seem to be a good idea.

_______________________________________________
ublas mailing list
ublas@...
http://lists.boost.org/mailman/listinfo.cgi/ublas
Sent to: lists@...

compile-fail-msvc-7.1.patch (538 bytes) Download Attachment