]> git.ozlabs.org Git - ccan/commitdiff
tools/ccanlint: make sure _info compiles.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 6 May 2016 00:44:10 +0000 (10:14 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 6 May 2016 00:44:10 +0000 (10:14 +0930)
We used to crash, as reported by Stephen M. Cameron

Closes: #39
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/ccanlint/tests/depends_accurate.c
tools/ccanlint/tests/depends_exist.c
tools/ccanlint/tests/info_ported.c

index 08760333eafcb6c0d757fc6f5c2e234c0137633a..a50611863c22feb8fffdbe6bc545ff0b7d03962c 100644 (file)
@@ -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,
        .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);
 };
 
 REGISTER_TEST(depends_accurate);
index f4d1e964634c8210cbf8fb6893ef5f4a4b2403ef..088b1e0cd6472a702bd974c1051b7770eb1b0597 100644 (file)
@@ -130,7 +130,7 @@ struct ccanlint depends_exist = {
        .name = "Module's CCAN dependencies can be found",
        .compulsory = true,
        .check = check_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);
 };
 
 REGISTER_TEST(depends_exist);
index 4436008925e05ca509d622d200ff949d281c3c54..3479cfc417291781c81b47d22f0770f87e7957b0 100644 (file)
@@ -39,7 +39,7 @@ struct ccanlint info_ported = {
        .can_run = can_build,
        .name = "_info indicates support for this platform",
        .check = check_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);
 };
 
 REGISTER_TEST(info_ported);