X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_coverage.c;fp=tools%2Fccanlint%2Ftests%2Ftests_coverage.c;h=69ca0350d338072f3729461e11a69ba2dd820d58;hp=ba677ceacf57f90090338d6a478239ac83999ca4;hb=af5b1a18948345c5f9f9abf4eda3ab9fe0aa9a9f;hpb=04f453bbedd1eca3e5ab93290304d8193ffdd87f diff --git a/tools/ccanlint/tests/tests_coverage.c b/tools/ccanlint/tests/tests_coverage.c index ba677cea..69ca0350 100644 --- a/tools/ccanlint/tests/tests_coverage.c +++ b/tools/ccanlint/tests/tests_coverage.c @@ -127,7 +127,6 @@ static void analyze_coverage(struct manifest *m, bool full_gcov, } static void do_run_coverage_tests(struct manifest *m, - bool keep, unsigned int *timeleft, struct score *score) { struct ccan_file *i; @@ -144,16 +143,6 @@ static void do_run_coverage_tests(struct manifest *m, full_gcov ? "" : "-n", outdir); - /* Unlink these files afterwards. */ - if (!keep) { - talloc_set_destructor(talloc_asprintf(score, - "%s/run.gcno", outdir), - unlink_file_destructor); - talloc_set_destructor(talloc_asprintf(score, - "%s/run.gcda", outdir), - unlink_file_destructor); - } - /* Run them all. */ foreach_ptr(list, &m->run_tests, &m->api_tests) { list_for_each(list, i, list) {