The unit test framework supports catching debugger() invocations and we need to make use of that here.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10687 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2005-01-12 03:49:50 +00:00
parent 26409756a9
commit 9ed278d664
@@ -12,6 +12,8 @@
#define CHK CPPUNIT_ASSERT #define CHK CPPUNIT_ASSERT
#include <TestShell.h>
// Project Includes ------------------------------------------------------------ // Project Includes ------------------------------------------------------------
// Local Includes -------------------------------------------------------------- // Local Includes --------------------------------------------------------------
@@ -36,7 +38,7 @@ void ReadWriteTester::Clear1()
#ifdef TEST_R5 #ifdef TEST_R5
CHK(false); CHK(false);
#endif #endif
CHK(clip.Clear() == B_ERROR); CPPUNIT_ASSERT_DEBUGGER(clip.Clear());
} }
/* /*
@@ -72,7 +74,7 @@ void ReadWriteTester::Revert1()
#ifdef TEST_R5 #ifdef TEST_R5
CHK(false); CHK(false);
#endif #endif
CHK(clip.Revert() == B_ERROR); CPPUNIT_ASSERT_DEBUGGER(clip.Revert());
} }
/* /*
@@ -130,7 +132,7 @@ void ReadWriteTester::Commit1()
#ifdef TEST_R5 #ifdef TEST_R5
CHK(false); CHK(false);
#endif #endif
CHK(clip.Commit() == B_ERROR); CPPUNIT_ASSERT_DEBUGGER(clip.Commit());
} }
/* /*
@@ -182,7 +184,7 @@ void ReadWriteTester::Data1()
#ifdef TEST_R5 #ifdef TEST_R5
CHK(false); CHK(false);
#endif #endif
CHK(!clip.Data()); CPPUNIT_ASSERT_DEBUGGER(clip.Data());
} }
/* /*