Added option (#define CAPTURE_STDERR)
if set then the DebugTrace calls only for failing tests are shown
This commit is contained in:
@@ -433,6 +433,15 @@ void TestSuiteGame::assertGame()
|
||||
Log("<span class=\"success\">==Test Succesful !==</span>");
|
||||
else
|
||||
Log("<span class=\"error\">==Test Failed !==</span>");
|
||||
#ifdef CAPTURE_STDERR
|
||||
if (error)
|
||||
{
|
||||
OutputCapturer::debugAndClear();
|
||||
} else
|
||||
{
|
||||
OutputCapturer::clear();
|
||||
}
|
||||
#endif
|
||||
mMutex.unlock();
|
||||
}
|
||||
|
||||
@@ -585,6 +594,9 @@ void TestSuite::ThreadProc(void* inParam)
|
||||
{
|
||||
LOG("Entering TestSuite::ThreadProc");
|
||||
TestSuite* instance = reinterpret_cast<TestSuite*>(inParam);
|
||||
#ifdef CAPTURE_STDERR
|
||||
OutputCapturer::debugAndClear();
|
||||
#endif
|
||||
if (instance)
|
||||
{
|
||||
string filename;
|
||||
|
||||
Reference in New Issue
Block a user