Boost logo

Boost Users :

Subject: [Boost-users] Test: Aborting at global fixture
From: Florian Lindner (mailinglists_at_[hidden])
Date: 2015-07-17 05:24:47


Hello,

what is the canonical way of reporting an error that accours at the global
fixture:

#include <boost/test/unit_test.hpp>

struct GlobalFixture {
  GlobalFixture()
  {
    std::cout << master.argc << std::endl;
    BOOST_FAIL("CRASH BOOM");
  }
  ~GlobalFixture()
  {
    std::cout << "Global teardown\n";
  }
};

BOOST_GLOBAL_FIXTURE(GlobalFixture)

Crashes with segfault.

Thanks,

Florian


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