Boost logo

Boost Users :

Subject: [Boost-users] [Test] How to span tests into multiply files
From: Daniele Barzotti (daniele.barzotti_at_[hidden])
Date: 2013-05-24 09:35:56


Hi,

I want to divide my test suites into multiply files.
I follow this example:
http://stackoverflow.com/questions/2906095/boost-test-looking-for-a-working-non-trivial-test-suite-example-tutorial

testmain.cpp
-----------------
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE Main
#include <boost/test/unit_test.hpp>

testConfigClass.cpp
-----------------
BOOST_AUTO_TEST_SUITE(ConfigClass_TestSuite)
BOOST_AUTO_TEST_CASE(testConfigClass) {
...
}
BOOST_AUTO_TEST_SUITE_END()

testDispatcherClass.cpp
-----------------

BOOST_AUTO_TEST_SUITE(DispatcherClass_TestSuite)
BOOST_AUTO_TEST_CASE(testDispatcherClass) {
...
}
BOOST_AUTO_TEST_SUITE_END()

Maybe in the testConfigClass I have some problems, which I cannot figure
out.
When the test ends, the program terminate with:

Exception first-chance a 0x7569c41f in TestSuite.exe: Exception of
Microsoft C++: boost::execution_exception into memory position 0x0034dda4..

In this scenario, where can I found the 'main' to debug deeply?

BR,
Daniele.


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