Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Minor cleaning.

  • Loading branch information
mkauppila committed Aug 28, 2011
1 parent adadcbc commit 30310c4c3cdc0c5d35aac4ed3f70140e2a66bed5
Showing with 15 additions and 12 deletions.
  1. +14 −10 test/test-automation/src/runner/runner.c
  2. +1 −2 test/test-automation/tests/testrender/testrender.c
@@ -1310,17 +1310,9 @@ ParseOptions(int argc, char *argv[])
}
}


/*!
* Entry point for test runner
*
* \param argc Count of command line arguments
* \param argv Array of commond lines arguments
*/
int
main(int argc, char *argv[])
void
InitRunner()
{
// \todo turn this into something better.
// Inits some global buffers to their default values
memcpy(log_basename, (void *)DEFAULT_LOG_FILENAME, SDL_strlen(DEFAULT_LOG_FILENAME));
memcpy(log_directory, (void *)DEFAULT_LOG_DIRECTORY, SDL_strlen(DEFAULT_LOG_DIRECTORY));
@@ -1329,8 +1321,20 @@ main(int argc, char *argv[])
memset(selected_suite_name, 0, NAME_BUFFER_SIZE);
memset(testcase_name_substring, 0, NAME_BUFFER_SIZE);
memset(xsl_stylesheet_name, 0, NAME_BUFFER_SIZE);
}


/*!
* Entry point for test runner
*
* \param argc Count of command line arguments
* \param argv Array of commond lines arguments
*/
int
main(int argc, char *argv[])
{
InitRunner();

ParseOptions(argc, argv);

int suiteCounter = 0;
@@ -501,8 +501,7 @@ _testBlitBlendMode( SDL_Texture * tface, int mode )
SDL_Rect rect;

/* Clear surface. */
if (_clearScreen())
return -1;
_clearScreen();

/* Steps to take. */
ni = SCREEN_W - FACE_W;

0 comments on commit 30310c4

Please sign in to comment.