X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fdepends_build_without_features.c;h=9982d27bbf8f980ae57438de06cf0a256f3a9cfd;hp=65728fc8f1fee779de2163175a880e035b1ff714;hb=b4ae30818ed7b5e670a99518e79595e7920f8e5c;hpb=b931f4765272d68de3b5e35d70c1933c27bcdea4 diff --git a/tools/ccanlint/tests/depends_build_without_features.c b/tools/ccanlint/tests/depends_build_without_features.c index 65728fc8..9982d27b 100644 --- a/tools/ccanlint/tests/depends_build_without_features.c +++ b/tools/ccanlint/tests/depends_build_without_features.c @@ -13,6 +13,7 @@ #include #include #include +#include "reduce_features.h" #include "../compulsory_tests/build.h" static const char *can_build(struct manifest *m) @@ -30,7 +31,8 @@ static void check_depends_built_without_features(struct manifest *m, struct manifest *i; char *flags; - flags = talloc_asprintf(score, "%s -I.", cflags); + flags = talloc_asprintf(score, "%s %s", cflags, + REDUCE_FEATURES_FLAGS); list_for_each(&m->deps, i, list) { char *errstr = build_submodule(i, flags, COMPILE_NOFEAT); @@ -53,7 +55,7 @@ struct ccanlint depends_build_without_features = { .name = "Module's CCAN dependencies can be found or built (reduced features)", .check = check_depends_built_without_features, .can_run = can_build, - .needs = "depends_exist" + .needs = "depends_exist reduce_features" }; REGISTER_TEST(depends_build_without_features);