Do not ftbfs when in release mode (-weror, -wunused-.. combination)

This commit is contained in:
Tobias Loose
2013-12-04 19:45:00 +01:00
parent a8391112b0
commit 2289fffb8d

View File

@@ -96,9 +96,8 @@ int main(int argc, char* argv[])
options.reloadProfile();
TestSuite testSuite("test/_tests.txt");
result = testSuite.run();
int totalTests = testSuite.nbTests + testSuite.nbAITests;
delete wagicCore;
DebugTrace("TestSuite done: failed test: " << result << " out of " << totalTests << " total");
DebugTrace("TestSuite done: failed test: " << result << " out of " << testSuite.nbTests + testSuite.nbAITests << " total");
#ifdef CAPTURE_STDERR
OutputCapturer::debugAndClear();
#endif