diff -r d84d25d6cdbb -r 3d3dcc3116d5 Test.m --- a/Test.m Sat Mar 08 21:04:41 2008 -0800 +++ b/Test.m Wed Apr 02 14:45:33 2008 -0700 @@ -11,11 +11,15 @@ #if DEBUG +BOOL gRunningTestCase; + struct TestCaseLink *gAllTestCases; static int sPassed, sFailed; static BOOL RunTestCase( struct TestCaseLink *test ) { + BOOL oldLogging = EnableLog(YES); + gRunningTestCase = YES; if( test->testptr ) { NSAutoreleasePool *pool = [NSAutoreleasePool new]; Log(@"=== Testing %s ...",test->name); @@ -37,6 +41,8 @@ test->testptr = NULL; // prevents test from being run again } } + gRunningTestCase = NO; + EnableLog(oldLogging); return test->passed; } @@ -63,7 +69,6 @@ void RunTestCases( int argc, const char **argv ) { - gShouldLog = YES; sPassed = sFailed = 0; BOOL stopAfterTests = NO; for( int i=1; i