Boost logo

Boost Users :

Subject: [Boost-users] [TEST] Tests registered manually never exectued....
From: Witold E Wolski (wewolski_at_[hidden])
Date: 2014-12-19 04:56:33


Im trying to manually register unit tests following the example at :

http://www.boost.org/doc/libs/1_57_0/libs/test/doc/html/utf/user-guide/test-organization/manual-test-suite.html

My registration code looks like follows:

boost::unit_test::test_suite* init_unit_test_suite(int argc, char* argv[]) {

    boost::unit_test::test_suite* ts2 = BOOST_TEST_SUITE("test_suite2");
    ts2->add(BOOST_TEST_CASE(&liveViewTest));
    ts2->add(BOOST_TEST_CASE(&checkImageFormats));
    ts2->add(BOOST_TEST_CASE(&testRethrowException));
    boost::unit_test::framework::master_test_suite().add(ts2);
    return 0;
}

The init_unit_test_suite function is entered and returns but non of
the added tests is ever exectued.

regards

-- 
Witold Eryk Wolski

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