- outdir = talloc_dirname(score, m->info_file->compiled);
- covcmd = talloc_asprintf(m, "gcov %s -o %s",
- 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);
- }
+ outdir = path_dirname(score,
+ m->info_file->compiled[COMPILE_NORMAL]);
+ covcmd = tal_fmt(m, "gcov %s -o %s",
+ full_gcov ? "" : "-n",
+ outdir);