Boost logo

Boost Users :

Subject: Re: [Boost-users] Test: Aborting at global fixture
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2015-07-17 15:03:11


Florian Lindner <mailinglists <at> xgm.de> writes:

> struct GlobalFixture {
> GlobalFixture()
> {
> std::cout << master.argc << std::endl;
> BOOST_FAIL("CRASH BOOM");
> }
>
> Crashes with segfault.

This report proper message in Boost.Test v3:

Test setup error: std::runtime_error: can't use testing tools outside of
test case implementation

Use exceptions instead inside the global fixture.

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