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

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-boo... mfg Gunter

AMDG Gunter Winkler wrote:
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?
Edit status/explicit-failures-markup.xml. In Christ, Steven Watanabe

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.

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.
participants (3)
-
Gunter Winkler
-
Steven Watanabe
-
Thomas Klimpel