Unit Test
[platform/upstream/libxml2.git] / testrecurse.c
index e5d5d1b..ab3d4f5 100644 (file)
@@ -911,6 +911,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);