From: Rusty Russell Date: Fri, 6 May 2016 00:44:10 +0000 (+0930) Subject: tools/ccanlint: make sure _info compiles. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=2512fecb742a1cfd0ce31d81c98bba0a97f3cbe2;hp=5b3a4c71fa765379906b2f4e3c90e8fdd5d1c255 tools/ccanlint: make sure _info compiles. We used to crash, as reported by Stephen M. Cameron Closes: #39 Signed-off-by: Rusty Russell --- diff --git a/tools/ccanlint/tests/depends_accurate.c b/tools/ccanlint/tests/depends_accurate.c index 08760333..a5061186 100644 --- a/tools/ccanlint/tests/depends_accurate.c +++ b/tools/ccanlint/tests/depends_accurate.c @@ -137,7 +137,7 @@ struct ccanlint depends_accurate = { .key = "depends_accurate", .name = "Module's CCAN dependencies are the only CCAN files #included", .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); diff --git a/tools/ccanlint/tests/depends_exist.c b/tools/ccanlint/tests/depends_exist.c index f4d1e964..088b1e0c 100644 --- a/tools/ccanlint/tests/depends_exist.c +++ b/tools/ccanlint/tests/depends_exist.c @@ -130,7 +130,7 @@ struct ccanlint depends_exist = { .name = "Module's CCAN dependencies can be found", .compulsory = true, .check = check_depends_exist, - .needs = "info_exists" + .needs = "info_compiles" }; REGISTER_TEST(depends_exist); diff --git a/tools/ccanlint/tests/info_ported.c b/tools/ccanlint/tests/info_ported.c index 44360089..3479cfc4 100644 --- a/tools/ccanlint/tests/info_ported.c +++ b/tools/ccanlint/tests/info_ported.c @@ -39,7 +39,7 @@ struct ccanlint info_ported = { .can_run = can_build, .name = "_info indicates support for this platform", .check = check_info_ported, - .needs = "info_exists" + .needs = "info_compiles" }; REGISTER_TEST(info_ported);