Unit Test
[platform/upstream/libxml2.git] / runtest.c
index bb74d2a..ced227a 100644 (file)
--- a/runtest.c
+++ b/runtest.c
@@ -4464,6 +4464,19 @@ runtest(int i) {
     res = launchTests(&testDescriptions[i]);
     if (res != 0)
        ret++;
+
+#if 1
+       if( (nb_errors == old_errors) && (nb_leaks == old_leaks) ){
+               printf("TEST: PASS: %s\n", testDescriptions[i].desc);
+       }
+       else if ( nb_errors != old_errors ) {
+               printf("TEST: FAIL: %s\n", testDescriptions[i].desc);
+       }
+       else {
+               printf("TEST: SKIP: %s\n", testDescriptions[i].desc);
+       }
+#endif
+
     if (verbose) {
        if ((nb_errors == old_errors) && (nb_leaks == old_leaks))
            printf("Ran %d tests, no errors\n", nb_tests - old_tests);