#include <tools/ccanlint/ccanlint.h>
#include <tools/tools.h>
-#include <ccan/talloc/talloc.h>
-#include <ccan/grab_file/grab_file.h>
#include <ccan/str/str.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <ctype.h>
-static const char *can_build(struct manifest *m)
+static const char *can_build(struct manifest *m UNNEEDED)
{
if (safe_mode)
return "Safe mode enabled";
}
static void check_includes_build(struct manifest *m,
- unsigned int *timeleft, struct score *score)
+ unsigned int *timeleft UNNEEDED,
+ struct score *score)
{
char *contents;
char *tmpsrc, *tmpobj, *cmdout;
if (fd < 0)
err(1, "Creating temporary file %s", tmpsrc);
- contents = talloc_asprintf(tmpsrc, "#include <ccan/%s/%s.h>\n",
- m->basename, m->basename);
+ contents = tal_fmt(tmpsrc, "#include <ccan/%s/%s.h>\n",
+ m->modname, m->basename);
if (write(fd, contents, strlen(contents)) != strlen(contents))
err(1, "writing to temporary file %s", tmpsrc);
close(fd);
score->pass = true;
score->score = score->total;
} else {
- score->error = talloc_asprintf(score,
+ score->error = tal_fmt(score,
"#include of the main header file:\n%s",
cmdout);
}
.name = "Modules main header compiles",
.check = check_includes_build,
.can_run = can_build,
- .needs = "depends_exist main_header_exists"
+ .needs = "depends_exist main_header_exists info_ported"
};
REGISTER_TEST(main_header_compiles);