X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_pass.c;h=f30fed66cb5924dc42427b2fd49cc50aa65cefd0;hb=a1d048552e7c9cbd07092cefb87204563a807608;hp=0edfad262c4ba02299052231691b23ce40784ff7;hpb=051db34fb275491d4d5dfa5bf7970e8e525766d8;p=ccan diff --git a/tools/ccanlint/tests/tests_pass.c b/tools/ccanlint/tests/tests_pass.c index 0edfad26..f30fed66 100644 --- a/tools/ccanlint/tests/tests_pass.c +++ b/tools/ccanlint/tests/tests_pass.c @@ -39,7 +39,7 @@ static void do_run_tests(struct manifest *m, i->compiled)) score->score++; else - score_file_error(score, i, 0, cmdout); + score_file_error(score, i, 0, "%s", cmdout); } } @@ -75,3 +75,13 @@ struct ccanlint tests_pass = { }; REGISTER_TEST(tests_pass); + +struct ccanlint tests_pass_without_features = { + .key = "tests_pass_without_features", + .name = "Module's run and api tests pass (without features)", + .check = do_run_tests, + .handle = run_under_debugger, + .needs = "tests_pass reduce_features" +}; + +REGISTER_TEST(tests_pass_without_features);