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

Commit

Permalink
Minor cleaning.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkauppila committed Aug 28, 2011
1 parent adadcbc commit 30310c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
24 changes: 14 additions & 10 deletions test/test-automation/src/runner/runner.c
Expand Up @@ -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));
Expand All @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions test/test-automation/tests/testrender/testrender.c
Expand Up @@ -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;
Expand Down

0 comments on commit 30310c4

Please sign in to comment.