Pārlūkot izejas kodu

cleanup runtime output/error detection of stb.h unit tests

Sean Barrett 11 gadi atpakaļ
vecāks
revīzija
2bf4326350
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      tests/stb.c

+ 6 - 1
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;
 }