Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Cleans up the logger output a bit. Removes fuzzer invocation count
Browse files Browse the repository at this point in the history
from the log if the fuzzer isn't used.
  • Loading branch information
mkauppila committed Sep 10, 2011
1 parent 209d70e commit 22b1d0f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/test-automation/src/libSDLtest/SDL_test.c
Expand Up @@ -65,7 +65,9 @@ _QuitTestEnvironment()
_testReturnValue = TEST_RESULT_NO_ASSERT;
}

Log(time(0), "Fuzzer invocation count: %d", GetInvocationCount());
if(GetInvocationCount() > 0) {
Log(time(0), "Fuzzer invocation count: %d", GetInvocationCount());
}

DeinitFuzzer();

Expand All @@ -78,8 +80,8 @@ _CountFailedAsserts() {
}

/*!
* Bail out from test case. For example, function is used to bail out
* after failed assert.
* Bail out from test case. For example, the function is used to bail out
* from a test case after a failed assert.
*/
void
_BailOut()
Expand All @@ -90,7 +92,9 @@ _BailOut()
AssertSummary(_testAssertsFailed + _testAssertsPassed,
_testAssertsFailed, _testAssertsPassed, time(0));

Log(time(0), "Fuzzer invocation count: %d", GetInvocationCount());
if(GetInvocationCount() > 0) {
Log(time(0), "Fuzzer invocation count: %d", GetInvocationCount());
}

DeinitFuzzer();

Expand Down

0 comments on commit 22b1d0f

Please sign in to comment.