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

Commit

Permalink
Added test of the assertion reporting system
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 19, 2011
1 parent 696109a commit 20507cc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/testplatform.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit 20507cc

Please sign in to comment.