ccanlint: put generated _info in correct directory.
[ccan] / tools / ccanlint / compulsory_tests / check_includes_build.c
index 7e0ab945f290dfaaa83e373b3255520a4e61fc20..f50e54300940f7a54526ba0e7c9084de0ea05e96 100644 (file)
@@ -22,7 +22,7 @@ static const char *can_build(struct manifest *m)
        return NULL;
 }
 
-static void *check_includes_build(struct manifest *m)
+static void *check_includes_build(struct manifest *m, unsigned int *timeleft)
 {
        char *contents;
        char *tmpfile, *err;
@@ -43,7 +43,7 @@ static void *check_includes_build(struct manifest *m)
        }
        close(fd);
 
-       if (compile_object(m, tmpfile, &err))
+       if (compile_object(m, tmpfile, ccan_dir, &err))
                return NULL;
        return err;
 }
@@ -57,7 +57,8 @@ static const char *describe_includes_build(struct manifest *m,
 }
 
 struct ccanlint includes_build = {
-       .name = "Can compile against main header",
+       .key = "include-main",
+       .name = "Modules main header compiles",
        .total_score = 1,
        .check = check_includes_build,
        .describe = describe_includes_build,