Refactoring the TestCaseInit and TestCaseQuit functions

to be caller from the Runner.
This commit is contained in:
Markus Kauppila 2011-06-04 17:50:23 +03:00
parent 450610b7c7
commit 1b21c6547d
7 changed files with 110 additions and 51 deletions

View file

@ -21,8 +21,8 @@ TestCaseReference **QueryTestSuite() {
return (TestCaseReference **)testSuite;
}
/**
* @brief Tests SDL_IntersectRectAndLine()
/*!
* \brief Tests SDL_IntersectRectAndLine()
*/
int rect_testIntersectRectAndLine (void *arg)
{
@ -31,8 +31,6 @@ int rect_testIntersectRectAndLine (void *arg)
int x2, y2;
SDL_bool clipped;
TestCaseInit();
x1 = -10;
y1 = 0;
x2 = -10;
@ -132,6 +130,4 @@ int rect_testIntersectRectAndLine (void *arg)
x1 == 0 && y1 == 31 && x2 == 31 && y2 == 0,
"diagonal line to upper right was incorrectly clipped: %d,%d - %d,%d",
x1, y1, x2, y2);
return TestCaseQuit();
}