Commit 2512fecb authored by Rusty Russell's avatar Rusty Russell

tools/ccanlint: make sure _info compiles.

We used to crash, as reported by Stephen M. Cameron

Closes: #39
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 5b3a4c71
...@@ -137,7 +137,7 @@ struct ccanlint depends_accurate = { ...@@ -137,7 +137,7 @@ struct ccanlint depends_accurate = {
.key = "depends_accurate", .key = "depends_accurate",
.name = "Module's CCAN dependencies are the only CCAN files #included", .name = "Module's CCAN dependencies are the only CCAN files #included",
.check = check_depends_accurate, .check = check_depends_accurate,
.needs = "depends_exist test_depends_exist headers_idempotent" .needs = "depends_exist info_compiles test_depends_exist headers_idempotent"
}; };
REGISTER_TEST(depends_accurate); REGISTER_TEST(depends_accurate);
...@@ -130,7 +130,7 @@ struct ccanlint depends_exist = { ...@@ -130,7 +130,7 @@ struct ccanlint depends_exist = {
.name = "Module's CCAN dependencies can be found", .name = "Module's CCAN dependencies can be found",
.compulsory = true, .compulsory = true,
.check = check_depends_exist, .check = check_depends_exist,
.needs = "info_exists" .needs = "info_compiles"
}; };
REGISTER_TEST(depends_exist); REGISTER_TEST(depends_exist);
......
...@@ -39,7 +39,7 @@ struct ccanlint info_ported = { ...@@ -39,7 +39,7 @@ struct ccanlint info_ported = {
.can_run = can_build, .can_run = can_build,
.name = "_info indicates support for this platform", .name = "_info indicates support for this platform",
.check = check_info_ported, .check = check_info_ported,
.needs = "info_exists" .needs = "info_compiles"
}; };
REGISTER_TEST(info_ported); REGISTER_TEST(info_ported);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment