X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fccanlint%2Ftests%2Ftests_pass_valgrind.c;h=bf914856845f2a7a42e9cec97d210c9b7c3ef06a;hb=04f453bbedd1eca3e5ab93290304d8193ffdd87f;hp=64cb29e21c438ef8e1c59fd744188413b395a608;hpb=ad6a6711a1b703793e49206e10d6dcf1722eb424;p=ccan diff --git a/tools/ccanlint/tests/tests_pass_valgrind.c b/tools/ccanlint/tests/tests_pass_valgrind.c index 64cb29e2..bf914856 100644 --- a/tools/ccanlint/tests/tests_pass_valgrind.c +++ b/tools/ccanlint/tests/tests_pass_valgrind.c @@ -165,8 +165,10 @@ static void do_run_tests_vg(struct manifest *m, options = concat(score, per_file_options(&tests_pass_valgrind, i)); - if (streq(options, "FAIL")) + if (streq(options, "FAIL")) { + i->leak_info = NULL; continue; + } if (keep) talloc_set_destructor(i->valgrind_log, NULL); @@ -246,7 +248,7 @@ static void run_under_debugger_vg(struct manifest *m, struct score *score) concat(score, per_file_options(&tests_pass_valgrind, first->file)), - first->file->compiled); + first->file->compiled[COMPILE_NORMAL]); if (system(command)) doesnt_matter(); }