Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-02-13 10:51:27


> Hi!
>
> When using the boost::test unit-test framework calls like
>
> boost::unit_test::test_suite* test =
> BOOST_TEST_SUITE( "Testing Something" );
>
> test->add(BOOST_TEST_CASE(&test_function_with_expected_error), 1);
>
> lead to an error in return code when used together
> with VC7 as a post-build step

It shouldn't. Could you provide an example to replicate an error?

> Of course I could use runtime argument "--result_code=no", but then
> how can I make a difference between expected and unexpected errors?

Check "Usage recomendation" section in docs. Use above flag always for
post-build event

> It makes sense to me to have expected errors in a testsuite, and
> especially
> to declare a test failure when an expected error does not appear.
> Could you please explain how boost::test supports this without
> having to write "failure-tests" myself?
>
>
> Markus

Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net