X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_pass.c;h=6c1172a75bfe1841e58b8b45c632d19b48724313;hp=0edfad262c4ba02299052231691b23ce40784ff7;hb=caf366998b97b7cc29bc1f33c285feb2f5d33bff;hpb=051db34fb275491d4d5dfa5bf7970e8e525766d8;ds=sidebyside diff --git a/tools/ccanlint/tests/tests_pass.c b/tools/ccanlint/tests/tests_pass.c index 0edfad26..6c1172a7 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); } } @@ -59,7 +59,7 @@ static void run_under_debugger(struct manifest *m, struct score *score) return; first = list_top(&score->per_file_errors, struct file_error, list); - command = talloc_asprintf(m, "gdb -ex 'break tap.c:136' -ex 'run' %s", + command = talloc_asprintf(m, "gdb -ex 'break tap.c:132' -ex 'run' %s", first->file->compiled); if (system(command)) doesnt_matter(); @@ -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);