Refactoring the code (runner.c).

Adding support for executing tests in-proc.
This commit is contained in:
Markus Kauppila 2011-05-30 12:55:40 +03:00
parent 73fa28c71c
commit bc147958d8
4 changed files with 96 additions and 65 deletions

View file

@ -23,8 +23,6 @@
#include "SDL_test.h"
#include <stdlib.h>
/*! \brief return value of test case. Non-zero value means that the test failed */
static int _testReturnValue;
@ -34,10 +32,10 @@ TestCaseInit()
_testReturnValue = 0;
}
void
int
TestCaseQuit()
{
exit(_testReturnValue);
return _testReturnValue;
}
void