Boost logo

Boost Testing :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-08-07 11:34:07


First of all this is wrong forum. This forum is dedicaed for Boost libraries
internal regression testing issues. Better use boost.users group next time.

> Hi, I tried your library but I don't get an error
> during linking (or running - I understood a linker
> error should be created)

Why did you excpect a linker error?

> Thank you very much for your answers
>
> Some information:
>
> ----------TestMain.cpp----------
> #define BOOST_AUTO_TEST_MAIN
> #include <boost/test/auto_unit_test.hpp>
>
>
> BOOST_AUTO_UNIT_TEST( test1 ){
> BOOST_ERROR( "error 1" );
>
> }
> -------------------------
> Building target: test
> Invoking: GCC C++ Linker
> g++ -otest ./tests/TestMain.o ./FileReader.o ./Main.o
> -lboost_unit_test_framework
> Finished building target: test
>
> Build complete for project test
>
> gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)

This works as expected. To get an error you need ot execute your test
module.

Gennadiy


Boost-testing list run by mbergal at meta-comm.com