Hi,
It seems there's not a way to stop/fail a benchmark whenever it is not possible to continue during SetUp().
class TestFixture : public ::hayai::Fixture
{
public:
virtual void SetUp() {
test = new Test();
if (!test->canContinue()) {
// SHOULD STOP HERE!
}
}
virtual void TearDown() {
delete(test);
}
Test *test;
};
BENCHMARK_F()'s connected to the fixture above still continues to execute.
Cheers!