Navigation Menu

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

Commit

Permalink
Fixed doxygen warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mkauppila committed May 30, 2011
1 parent 0187c1e commit 0e628a7
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions test/test-automation/runner.c
Expand Up @@ -35,7 +35,9 @@ typedef int (*TestCase)(void *arg);
*
* \return Loaded test suite
*/
void *LoadTestSuite() {
void *
LoadTestSuite()
{
#if defined(linux) || defined( __linux)
char *libName = "tests/libtest.so";
#else
Expand All @@ -57,7 +59,9 @@ void *LoadTestSuite() {
* \param library Previously loaded dynamic library AKA test suite
* \return Loaded TestCaseReferences
*/
TestCaseReference **QueryTestCases(void *library) {
TestCaseReference **
QueryTestCases(void *library)
{
TestCaseReference **(*suite)(void);

suite = (TestCaseReference **(*)(void)) SDL_LoadFunction(library, "QueryTestSuite");
Expand All @@ -78,12 +82,14 @@ TestCaseReference **QueryTestCases(void *library) {
/*!
* Loads test case from a test suite
*
* \param Test suite
* \testName Name of the test that is going to be loaded
* \param suite a test suite
* \param testName Name of the test that is going to be loaded
*
* \return loaded test
*/
TestCase LoadTestCase(void *suite, char *testName) {
TestCase
LoadTestCase(void *suite, char *testName)
{
TestCase test = (int (*)(void *)) SDL_LoadFunction(suite, testName);
if(test == NULL) {
printf("Loading test failed, tests == NULL\n");
Expand All @@ -94,7 +100,6 @@ TestCase LoadTestCase(void *suite, char *testName) {
}



/*!
* If using out-of-proc execution of tests. This function
* will handle the return value of the child process
Expand All @@ -105,8 +110,10 @@ TestCase LoadTestCase(void *suite, char *testName) {
*
* \return 0 if test case succeeded, 1 otherwise
*/
int HandleTestReturnValue(int stat_lock) {
//! \todo rename to: HandleChildReturn Value
int
HandleTestReturnValue(int stat_lock)
{
//! \todo rename to: HandleChildProcessReturnValue?
int returnValue = -1;

if(WIFEXITED(stat_lock)) {
Expand All @@ -122,7 +129,7 @@ int HandleTestReturnValue(int stat_lock) {
}

//!< Flag for executing tests in-process
int execute_inproc = 0;
static int execute_inproc = 0;

/*!
* Parse command line arguments
Expand All @@ -145,7 +152,7 @@ main(int argc, char *argv[])
{
ParseOptions(argc, argv);

// print: Testing againts SDL version fuu (rev: bar) if verbose == true
// print: Testing against SDL version fuu (rev: bar) if verbose == true

int failureCount = 0, passCount = 0;

Expand Down

0 comments on commit 0e628a7

Please sign in to comment.