X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Flicense.c;h=1ffee9e25d6719b269e675db8a8eaf856f3d3dab;hp=bc0ee45464a688dcc8a6738be4b62b0e7faf0ad8;hb=016a19d260cd7f4afeb5b2b2cc28c8bbed1cd170;hpb=f9423c171395571f9880286190d9cf63da147668 diff --git a/tools/ccanlint/tests/license.c b/tools/ccanlint/tests/license.c index bc0ee454..1ffee9e2 100644 --- a/tools/ccanlint/tests/license.c +++ b/tools/ccanlint/tests/license.c @@ -11,6 +11,8 @@ #include #include +struct ccanlint has_license; + static struct doc_section *find_license(const struct manifest *m) { struct doc_section *d; @@ -151,6 +153,7 @@ struct ccanlint has_license = { .key = "license_exists", .name = "Module has License: entry in _info, and LICENSE symlink/file", .check = check_has_license, + .needs = "info_exists" }; -REGISTER_TEST(has_license, &has_info, NULL); +REGISTER_TEST(has_license);