1.1 --- a/include/SDL_test_assert.h Sat Dec 08 15:33:14 2012 -0500
1.2 +++ b/include/SDL_test_assert.h Sun Dec 09 17:56:19 2012 -0800
1.3 @@ -54,12 +54,6 @@
1.4 */
1.5 #define ASSERT_PASS 1
1.6
1.7 -/*! \brief counts the failed asserts */
1.8 -static Uint32 SDLTest_AssertsFailed = 0;
1.9 -
1.10 -/*! \brief counts the passed asserts */
1.11 -static Uint32 SDLTest_AssertsPassed = 0;
1.12 -
1.13 /**
1.14 * \brief Assert that logs and break execution flow on failures.
1.15 *
1.16 @@ -85,10 +79,17 @@
1.17
1.18 /**
1.19 * \brief Logs summary of all assertions (total, pass, fail) since last reset as INFO or ERROR.
1.20 - *
1.21 */
1.22 void SDLTest_LogAssertSummary();
1.23
1.24 +
1.25 +/**
1.26 + * \brief Converts the current assert summary state to a test result.
1.27 + *
1.28 + * \returns TEST_RESULT_PASSED, TEST_RESULT_FAILED, or TEST_RESULT_NO_ASSERT
1.29 + */
1.30 +int SDLTest_AssertSummaryToTestResult();
1.31 +
1.32 #ifdef __cplusplus
1.33 /* *INDENT-OFF* */
1.34 }