Mercurial > sdl-ios-xcode
diff test/automated/SDL_at.c @ 3713:a34bab848c7e gsoc2009_unit_tests
Better output.
Newline handling.
rwops test handles ConstMem, FP and File.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Sat, 20 Jun 2009 16:46:58 +0000 |
parents | 80839fc6b8e1 |
children | d8772964e402 |
line wrap: on
line diff
--- a/test/automated/SDL_at.c Fri Jun 19 18:57:23 2009 +0000 +++ b/test/automated/SDL_at.c Sat Jun 20 16:46:58 2009 +0000 @@ -71,7 +71,7 @@ if (verbose) { if (at_failure > 0) { SDL_ATprint( "%s : Failed %d out of %d testcases!\n", - at_suite_msg, at_failure, at_success ); + at_suite_msg, at_failure, at_failure+at_success ); } else { SDL_ATprint( "%s : All tests successful (%d)\n", @@ -94,12 +94,12 @@ { /* Do not open twice. */ if (at_test_msg) { - SDL_ATprint( "AT testcase '%s' not closed before opening testcase '%s'", + SDL_ATprint( "AT testcase '%s' not closed before opening testcase '%s'\n", at_test_msg, testcase ); } /* Must have a name. */ if (testcase == NULL) { - SDL_ATprint( "AT testcase does not have a name."); + SDL_ATprint( "AT testcase does not have a name.\n"); } at_test_msg = testcase; } @@ -112,7 +112,7 @@ { /* Make sure initialized. */ if (at_test_msg == NULL) { - SDL_ATprint("Ended testcase without initializing."); + SDL_ATprint("Ended testcase without initializing.\n"); return; } @@ -134,7 +134,7 @@ { /* Condition failed. */ if (!condition) { - SDL_ATprint( "%s [%s] : %s", at_suite_msg, at_test_msg, msg ); + SDL_ATprint( "%s [%s] : %s\n", at_suite_msg, at_test_msg, msg ); SDL_ATendWith(0); } return !condition;