Boost logo

Boost Users :

Subject: [Boost-users] Need sample for CMakelist.txt with BOOST.test
From: Abhay Mhatre (mhatre.abhay_at_[hidden])
Date: 2015-07-23 17:07:05


Hi,

I am newbie, and struggling with testing project that is build in
CMakeList.txt for using Boost.Test.

project builds successfully and runs too, only problem is when unit test
fails BOOST_REQUIRE exits without printing fatal exception message on
console. It also doesn't show next failure.

I tired compiling same library with g++ command and everything works as
expected. however with CMakeList project there is no output

I tried setting explicit

boost::unit_test::unit_test_log_t::instance().set_threshold_level(boost::unit_test::log_all_errors)

also tried with setting
# define BOOST_TEST_LOG_LEVEL all

but there is no output except fatal error on console.

also it doesn't show fatal error for multiple tests/

Can some one please suggest some way to investigate this further/ provide
sample CMakeList.txt file that I can compare and see if I am missing
anything

thanks in advance,
Abhay



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