From 20507cc6dc60ec1aff1b65a20967aab088271f45 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 19 Apr 2011 11:41:45 -0700 Subject: [PATCH] Added test of the assertion reporting system --- test/testplatform.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); }