Big CppUnit update

+ Initial threaded test support
+ Integrated CppUnitShell code into TestShell


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@75 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder
2002-07-11 03:28:37 +00:00
parent aa3f51a786
commit 530d2bc9fe
9 changed files with 595 additions and 21 deletions
+18 -4
View File
@@ -3,16 +3,30 @@
#include <cppunit/TestCase.h>
#include <StorageDefs.h>
#include <SupportDefs.h>
class TestCase : public CppUnit::TestCase {
//! Base class for single threaded unit tests
class BTestCase : public CppUnit::TestCase {
public:
TestCase();
TestCase(std::string Name);
BTestCase(std::string Name = "");
//! Displays the next sub test progress indicator (i.e. [0][1][2][3]...).
virtual void NextSubTest();
//! Starts a new sub test block (i.e. prints a newline :-)
virtual void NextSubTestBlock();
//! Saves the location of the current working directory.
void SaveCWD();
virtual void tearDown();
//! Restores the current working directory to last directory saved by a call to SaveCWD().
void RestoreCWD(const char *alternate = NULL);
protected:
bool fValidCWD;
char fCurrentWorkingDir[B_PATH_NAME_LENGTH+1];
char fCurrentWorkingDir[B_PATH_NAME_LENGTH+1];
int32 fSubTestNum;
};
#endif // _beos_test_case_h_