Files
cpp-thirdparty/noarch/lib/py/cxxtest/test/GfTearDownFails.h
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

27 lines
535 B
C++

//
// This file tests what happens when GlobalFixture::tearDown() fails
//
#include <cxxtest/TestSuite.h>
#include <cxxtest/GlobalFixture.h>
#include <stdio.h>
class Fixture : public CxxTest::GlobalFixture
{
public:
bool tearDown() { return false; }
};
//
// We can rely on this file being included exactly once
// and declare this global variable in the header file.
//
static Fixture fixture;
class Suite : public CxxTest::TestSuite
{
public:
void testOne() {}
void testTwo() { TS_WARN("Testing should go on!"); }
};