]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/compile_test_helpers.c
From: Joseph Adams <joeyadams3.14159@gmail.com>
[ccan] / tools / ccanlint / compulsory_tests / compile_test_helpers.c
index de8d4632c9fbea9aa9ff992a2b0a0eb78a879d91..5c7a9ec6d271428529d447b2be6b7ab42e21cba4 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,6 +56,7 @@ static const char *describe_compile_test_helpers(struct manifest *m,
 }
 
 struct ccanlint compile_test_helpers = {
+       .key = "compile-helpers",
        .name = "Compiling test helper files",
        .total_score = 1,
        .check = do_compile_test_helpers,