Mercurial > sdl-ios-xcode
changeset 3463:06c66b8d5033
Output last SDL error in case of test was failed.
author | Mike Gorchak <lestat@i.com.ua> |
---|---|
date | Fri, 20 Nov 2009 07:08:28 +0000 |
parents | 6265b67848e0 |
children | 09136f534198 |
files | test/automated/SDL_at.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/test/automated/SDL_at.c Fri Nov 20 07:07:41 2009 +0000 +++ b/test/automated/SDL_at.c Fri Nov 20 07:08:28 2009 +0000 @@ -9,6 +9,7 @@ #include "SDL_at.h" #include "SDL_stdinc.h" +#include "SDL_error.h" #include <stdio.h> /* printf/fprintf */ #include <stdarg.h> /* va_list */ @@ -209,6 +210,7 @@ SDL_ATprintErr( " %s\n", msg ); SDL_ATprintErr( " Test Case '%s'\n", at_test_msg ); SDL_ATprintErr( " Test Suite '%s'\n", at_suite_msg ); + SDL_ATprintErr( " Last SDL error '%s'\n", SDL_GetError() ); /* End. */ SDL_ATendWith(0); } @@ -302,6 +304,3 @@ return ret; } - - -