comparison test/automated/SDL_at.c @ 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 1f1a41879fe4
children 78db4f7ae2f3
comparison
equal deleted inserted replaced
3462:6265b67848e0 3463:06c66b8d5033
7 */ 7 */
8 8
9 9
10 #include "SDL_at.h" 10 #include "SDL_at.h"
11 #include "SDL_stdinc.h" 11 #include "SDL_stdinc.h"
12 #include "SDL_error.h"
12 13
13 #include <stdio.h> /* printf/fprintf */ 14 #include <stdio.h> /* printf/fprintf */
14 #include <stdarg.h> /* va_list */ 15 #include <stdarg.h> /* va_list */
15 16
16 17
207 /* Print. */ 208 /* Print. */
208 SDL_ATprintErr( "Assert Failed!\n" ); 209 SDL_ATprintErr( "Assert Failed!\n" );
209 SDL_ATprintErr( " %s\n", msg ); 210 SDL_ATprintErr( " %s\n", msg );
210 SDL_ATprintErr( " Test Case '%s'\n", at_test_msg ); 211 SDL_ATprintErr( " Test Case '%s'\n", at_test_msg );
211 SDL_ATprintErr( " Test Suite '%s'\n", at_suite_msg ); 212 SDL_ATprintErr( " Test Suite '%s'\n", at_suite_msg );
213 SDL_ATprintErr( " Last SDL error '%s'\n", SDL_GetError() );
212 /* End. */ 214 /* End. */
213 SDL_ATendWith(0); 215 SDL_ATendWith(0);
214 } 216 }
215 217
216 218
300 va_end(ap); 302 va_end(ap);
301 } 303 }
302 304
303 return ret; 305 return ret;
304 } 306 }
305
306
307