Fixed doxygen warnings
authorMarkus Kauppila <markus.kauppila@gmail.com>
Mon, 30 May 2011 18:58:20 +0300
changeset 567307b920bcff70
parent 5672 d2df9dbce0ea
child 5674 1ee88babe722
Fixed doxygen warnings
test/test-automation/runner.c
     1.1 --- a/test/test-automation/runner.c	Mon May 30 12:55:40 2011 +0300
     1.2 +++ b/test/test-automation/runner.c	Mon May 30 18:58:20 2011 +0300
     1.3 @@ -35,7 +35,9 @@
     1.4   *
     1.5   * \return Loaded test suite
     1.6   */
     1.7 -void *LoadTestSuite() {
     1.8 +void *
     1.9 +LoadTestSuite()
    1.10 +{
    1.11  #if defined(linux) || defined( __linux)
    1.12  	char *libName = "tests/libtest.so";
    1.13  #else
    1.14 @@ -57,7 +59,9 @@
    1.15   * \param library Previously loaded dynamic library AKA test suite
    1.16   * \return Loaded TestCaseReferences
    1.17   */
    1.18 -TestCaseReference **QueryTestCases(void *library) {
    1.19 +TestCaseReference **
    1.20 +QueryTestCases(void *library)
    1.21 +{
    1.22  	TestCaseReference **(*suite)(void);
    1.23  
    1.24  	suite = (TestCaseReference **(*)(void)) SDL_LoadFunction(library, "QueryTestSuite");
    1.25 @@ -78,12 +82,14 @@
    1.26  /*!
    1.27   * Loads test case from a test suite
    1.28   *
    1.29 - * \param Test suite
    1.30 - * \testName Name of the test that is going to be loaded
    1.31 + * \param suite a test suite
    1.32 + * \param testName Name of the test that is going to be loaded
    1.33   *
    1.34   * \return loaded test
    1.35   */
    1.36 -TestCase LoadTestCase(void *suite, char *testName) {
    1.37 +TestCase
    1.38 +LoadTestCase(void *suite, char *testName)
    1.39 +{
    1.40  	TestCase test = (int (*)(void *)) SDL_LoadFunction(suite, testName);
    1.41  	if(test == NULL) {
    1.42  		printf("Loading test failed, tests == NULL\n");
    1.43 @@ -94,7 +100,6 @@
    1.44  }
    1.45  
    1.46  
    1.47 -
    1.48  /*!
    1.49   * If using out-of-proc execution of tests. This function
    1.50   * will handle the return value of the child process
    1.51 @@ -105,8 +110,10 @@
    1.52   *
    1.53   * \return 0 if test case succeeded, 1 otherwise
    1.54   */
    1.55 -int HandleTestReturnValue(int stat_lock) {
    1.56 -	//! \todo rename to: HandleChildReturn Value
    1.57 +int
    1.58 +HandleTestReturnValue(int stat_lock)
    1.59 +{
    1.60 +	//! \todo rename to: HandleChildProcessReturnValue?
    1.61  	int returnValue = -1;
    1.62  
    1.63  	if(WIFEXITED(stat_lock)) {
    1.64 @@ -122,7 +129,7 @@
    1.65  }
    1.66  
    1.67  //!< Flag for executing tests in-process
    1.68 -int execute_inproc = 0;
    1.69 +static int execute_inproc = 0;
    1.70  
    1.71  /*!
    1.72   * Parse command line arguments
    1.73 @@ -145,7 +152,7 @@
    1.74  {
    1.75  	ParseOptions(argc, argv);
    1.76  
    1.77 -	// print: Testing againts SDL version fuu (rev: bar) if verbose == true
    1.78 +	// print: Testing against SDL version fuu (rev: bar) if verbose == true
    1.79  
    1.80  	int failureCount = 0, passCount = 0;
    1.81