From 2bf4326350badbf345c618040f2815ab4b33cda6 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sat, 31 May 2014 13:39:00 -0700 Subject: [PATCH] cleanup runtime output/error detection of stb.h unit tests --- tests/stb.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/stb.c b/tests/stb.c index 0bf1767..e0731d6 100644 --- a/tests/stb.c +++ b/tests/stb.c @@ -1552,7 +1552,12 @@ int main(int argc, char **argv) for (n=1; n < 20; ++n) malloc(1 << n); - stb_("Finished stb.c with %d errors.", count); + printf("Finished stb.c with %d errors.\n", count); + + #ifdef _MSC_VER + if (count) + __asm int 3; + #endif return 0; }