]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/objects_build_with_stringchecks.c
tools: don't assume modules are immediately below ccan/ dir.
[ccan] / tools / ccanlint / tests / objects_build_with_stringchecks.c
index 9aa6fd8432fa6a6c446f83875db46acc514c2286..c2fe1b6cc7c519e52d920ae5df14c510e8f42072 100644 (file)
@@ -112,7 +112,7 @@ static void build_objects_with_stringchecks(struct manifest *m,
                tmp = temp_file(score, ".c", i->fullname);
                tmpfd = start_file(tmp);
                line = talloc_asprintf(score, "#include <ccan/%s/%s.h>\n",
                tmp = temp_file(score, ".c", i->fullname);
                tmpfd = start_file(tmp);
                line = talloc_asprintf(score, "#include <ccan/%s/%s.h>\n",
-                                      m->basename, m->basename);
+                                      m->modname, m->basename);
                write_str(tmpfd, line);
                close(tmpfd);
                test_compile(score, i, tmp, flags, &errors, &warnings);
                write_str(tmpfd, line);
                close(tmpfd);
                test_compile(score, i, tmp, flags, &errors, &warnings);