Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Output last SDL error in case of test was failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
llmike committed Nov 20, 2009
1 parent 3867c7a commit b6a854f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/automated/SDL_at.c
Expand Up @@ -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 */
Expand Down Expand Up @@ -209,6 +210,7 @@ static void SDL_ATassertFailed( const char *msg )
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);
}
Expand Down Expand Up @@ -302,6 +304,3 @@ int SDL_ATprintVerbose( int level, const char *msg, ... )

return ret;
}



0 comments on commit b6a854f

Please sign in to comment.