diff options
author | Markus Kauppila <markus.kauppila@gmail.com> | 2011-08-28 22:18:56 +0300 |
---|---|---|
committer | Markus Kauppila <markus.kauppila@gmail.com> | 2011-08-28 22:18:56 +0300 |
commit | 5ddab4861be163e731c9af8aee4331aac830ab46 (patch) | |
tree | 2b11ad40cb2d9af5861cd71d04ef64235d31f840 /test/test-automation | |
parent | c68055782fbb69366a6fd05809ef1907de5a26b9 (diff) |
Minor cleaning.
Diffstat (limited to 'test/test-automation')
-rw-r--r-- | test/test-automation/src/runner/runner.c | 24 | ||||
-rw-r--r-- | test/test-automation/tests/testrender/testrender.c | 3 |
2 files changed, 15 insertions, 12 deletions
diff --git a/test/test-automation/src/runner/runner.c b/test/test-automation/src/runner/runner.c index 8b7368be..a33042b1 100644 --- a/test/test-automation/src/runner/runner.c +++ b/test/test-automation/src/runner/runner.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; diff --git a/test/test-automation/tests/testrender/testrender.c b/test/test-automation/tests/testrender/testrender.c index 7a8375a0..bea2040d 100644 --- a/test/test-automation/tests/testrender/testrender.c +++ b/test/test-automation/tests/testrender/testrender.c @@ -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; |