summaryrefslogtreecommitdiff
path: root/test/testplatform.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2011-04-19 11:41:45 -0700
committerSam Lantinga <slouken@libsdl.org>2011-04-19 11:41:45 -0700
commitd8228fcb41499f2a3a1289df2df1e38ec8da4dc6 (patch)
treece3eb8c17ceea404668d63bf7dae003b9afbfc8e /test/testplatform.c
parentaa22e910497bd43e2c69dc92bb33c16bcb513d52 (diff)
downloadsdl-d8228fcb41499f2a3a1289df2df1e38ec8da4dc6.tar.gz
Added test of the assertion reporting system
Diffstat (limited to 'test/testplatform.c')
-rw-r--r--test/testplatform.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/testplatform.c b/test/testplatform.c
index 303920fd5..6cd502658 100644
--- a/test/testplatform.c
+++ b/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);
}