diff options
author | Sam Lantinga <slouken@libsdl.org> | 2011-04-19 11:41:45 -0700 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2011-04-19 11:41:45 -0700 |
commit | d8228fcb41499f2a3a1289df2df1e38ec8da4dc6 (patch) | |
tree | ce3eb8c17ceea404668d63bf7dae003b9afbfc8e /test/testplatform.c | |
parent | aa22e910497bd43e2c69dc92bb33c16bcb513d52 (diff) | |
download | sdl-d8228fcb41499f2a3a1289df2df1e38ec8da4dc6.tar.gz |
Added test of the assertion reporting system
Diffstat (limited to 'test/testplatform.c')
-rw-r--r-- | test/testplatform.c | 10 |
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); } |