]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/tests_coverage.c
ccanlint: fix --compiler and --cflags options to apply to _info files as well.
[ccan] / tools / ccanlint / tests / tests_coverage.c
index caca30ce6865535e27bf618da43ea079f61fa425..2a7bf635eab22363f20c70722e69539e1446267b 100644 (file)
@@ -1,6 +1,7 @@
 #include <tools/ccanlint/ccanlint.h>
 #include <tools/tools.h>
 #include <ccan/str/str.h>
+#include <ccan/tal/path/path.h>
 #include <ccan/foreach/foreach.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -142,8 +143,8 @@ static void do_run_coverage_tests(struct manifest *m,
        bool ran_some = false;
 
        /* This tells gcov where we put those .gcno files. */
-       outdir = tal_dirname(score,
-                               m->info_file->compiled[COMPILE_NORMAL]);
+       outdir = path_dirname(score,
+                             m->info_file->compiled[COMPILE_NORMAL]);
        covcmd = tal_fmt(m, "gcov %s -o %s",
                         full_gcov ? "" : "-n",
                         outdir);