Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added test of the assertion reporting system

  • Loading branch information
slouken committed Apr 19, 2011
1 parent 696109a commit 20507cc6dc60ec1aff1b65a20967aab088271f45
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/testplatform.c
@@ -172,6 +172,16 @@ TestAssertions(SDL_bool verbose)
SDL_assert_release(0 && "This is a test");
#endif

{
const SDL_assert_data *item = SDL_GetAssertionReport();
while (item) {
printf("'%s', %s (%s:%d), triggered %u times, always ignore: %s.\n",
item->condition, item->function, item->filename,
item->linenum, item->trigger_count,
item->always_ignore ? "yes" : "no");
item = item->next;
}
}
return (0);
}

0 comments on commit 20507cc

Please sign in to comment.