a6b33ea3de
+ Added ability to specify entire suites to the UnitTester program. + BAutolock and BArchivable tests now use CPPUNIT_ASSERT, but BLocker tests crash for some unknown reason with said assertion, so plain old vanilla assert() is still used. I'll look into this later. + BArchivable tests that try to load a RemoteTestObject are failing because the resource file doesn't appear to be linked into libsupporttest_RemoteTestObject.so. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@332 a95241bf-73f2-0310-859d-f6bbb57e9c96
24 lines
479 B
C++
24 lines
479 B
C++
#ifndef _example_test_h_
|
|
#define _example_test_h_
|
|
|
|
#include <ThreadedTestCase.h>
|
|
#include <Locker.h>
|
|
|
|
class ExampleTest : public BThreadedTestCase {
|
|
public:
|
|
ExampleTest(std::string name = "");
|
|
virtual ~ExampleTest() { delete fLocker; }
|
|
|
|
static CppUnit::Test* Suite();
|
|
|
|
void TestFunc1(); // num += 10
|
|
void TestFunc2(); // num *= 2
|
|
void TestFunc3(); // num -= 5
|
|
void FailureFunc(); // Fails assertion
|
|
protected:
|
|
BLocker *fLocker;
|
|
int fNum;
|
|
};
|
|
|
|
#endif // _example_test_h_
|