+
+static const char *features_reduced(struct manifest *m)
+{
+ if (features_were_reduced)
+ return NULL;
+ return "No features to turn off";
+}
+
+static void do_compile_test_helpers_without_features(struct manifest *m,
+ bool keep,
+ unsigned int *timeleft,
+ struct score *score)
+{
+ char *flags;
+
+ flags = talloc_asprintf(score, "%s %s", cflags,
+ REDUCE_FEATURES_FLAGS);
+
+ compile_test_helpers(m, keep, timeleft, score, flags,
+ COMPILE_NOFEAT);
+}
+
+struct ccanlint tests_helpers_compile_without_features = {
+ .key = "tests_helpers_compile_without_features",
+ .name = "Module tests helpers compile (without features)",
+ .check = do_compile_test_helpers_without_features,
+ .can_run = features_reduced,
+ .needs = "depends_build_without_features tests_exist"
+};
+REGISTER_TEST(tests_helpers_compile_without_features);