]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/compile_test_helpers.c
ccanlint: clean up test short descriptions
[ccan] / tools / ccanlint / compulsory_tests / compile_test_helpers.c
index de8d4632c9fbea9aa9ff992a2b0a0eb78a879d91..127d972b183cba95113c25f0c924e57309306d83 100644 (file)
@@ -24,8 +24,9 @@ static const char *can_build(struct manifest *m)
 static char *compile(struct manifest *m, struct ccan_file *cfile)
 {
        char *err;
+       char *fullfile = talloc_asprintf(m, "%s/%s", m->dir, cfile->name);
 
-       cfile->compiled = compile_object(m, cfile->name, &err);
+       cfile->compiled = compile_object(m, fullfile, ccan_dir, &err);
        if (cfile->compiled)
                return NULL;
        return err;
@@ -55,7 +56,8 @@ static const char *describe_compile_test_helpers(struct manifest *m,
 }
 
 struct ccanlint compile_test_helpers = {
-       .name = "Compiling test helper files",
+       .key = "compile-helpers",
+       .name = "Module test helper objects compile",
        .total_score = 1,
        .check = do_compile_test_helpers,
        .describe = describe_compile_test_helpers,