Mercurial > sdl-ios-xcode
diff test/automated/render/render.c @ 3753:5b48a529fd8a gsoc2009_unit_tests
More debugging information when test fails.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Thu, 06 Aug 2009 08:39:42 +0000 |
parents | f7a3a47e6b50 |
children |
line wrap: on
line diff
--- a/test/automated/render/render.c Wed Aug 05 18:56:56 2009 +0000 +++ b/test/automated/render/render.c Thu Aug 06 08:39:42 2009 +0000 @@ -970,6 +970,7 @@ int test_render (void) { #endif /* TEST_STANDALONE */ + int failed; int i, j, nd, nr; int ret; const char *driver, *str; @@ -997,6 +998,7 @@ * Surface on video mode tests. */ /* Run for all video modes. */ + failed = 0; for (i=0; i<nd; i++) { /* Get video mode. */ driver = SDL_GetVideoDriver(i); @@ -1058,7 +1060,8 @@ /* * Run tests. */ - if (render_runTests()) + ret = render_runTests(); + if (ret) continue; SDL_ATend(); @@ -1070,16 +1073,16 @@ /* * Finish testsuite. */ - SDL_ATfinish(); + failed += SDL_ATfinish(); } /* Exit SDL. */ SDL_Quit(); - return 0; + return failed; err: - return -1; + return 1; }