]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/tests_pass_valgrind.c
ccanlint: exit with non-zero exit status if a test fails.
[ccan] / tools / ccanlint / tests / tests_pass_valgrind.c
index 7ef0ac1aa9ac72809473befa118538580d820a1e..f17fbca4f9b7fa633e1c6e2a045d36f5284586c7 100644 (file)
@@ -156,9 +156,10 @@ static void do_leakcheck_vg(struct manifest *m,
                }
        }
 
+       /* FIXME: We don't fail for this, since many tests leak. */ 
+       score->pass = true;
        if (!leaks) {
                score->score = 1;
-               score->pass = true;
        }
 }