X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_pass.c;h=15a97363098c0786790aad7c9ab433d9accd3d5d;hb=271676fecdb2fb079374b9e3fe03e5c53e7f0f23;hp=0edfad262c4ba02299052231691b23ce40784ff7;hpb=051db34fb275491d4d5dfa5bf7970e8e525766d8;p=ccan diff --git a/tools/ccanlint/tests/tests_pass.c b/tools/ccanlint/tests/tests_pass.c index 0edfad26..15a97363 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_compile_without_features" +}; + +REGISTER_TEST(tests_pass_without_features);