]> git.ozlabs.org Git - ccan/commitdiff
ccanlint: don't collect results from test children
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 20 Jan 2011 01:01:11 +0000 (11:31 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 20 Jan 2011 01:01:11 +0000 (11:31 +1030)
This confuses the output, and makes us sometimes see spurious
failure.  At least we will still catch valgrind errors in
children of failtest, thanks to --error-exitcode=101.

tools/ccanlint/tests/tests_pass_valgrind.c

index 33eb6b1f6f083ee258b06460f5b1593357405eec..da61dd364729daf87c42cbeb91fbe184e9069e0b 100644 (file)
@@ -112,6 +112,7 @@ static void do_run_tests_vg(struct manifest *m,
                         * humans, and you can't have both. */
                        run_command(score, timeleft, &cmdout,
                                    "valgrind -q --error-exitcode=101"
                         * humans, and you can't have both. */
                        run_command(score, timeleft, &cmdout,
                                    "valgrind -q --error-exitcode=101"
+                                   " --child-silent-after-fork=yes"
                                    " --leak-check=full"
                                    " --log-fd=3 %s %s"
                                    " 3> valgrind.log",
                                    " --leak-check=full"
                                    " --log-fd=3 %s %s"
                                    " 3> valgrind.log",