X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_pass.c;h=6c1172a75bfe1841e58b8b45c632d19b48724313;hb=061e359bfc50f006a08410d43527342025d498ad;hp=1d3c018296d409bda74892a849ab41e25e64384a;hpb=4a1ec39ed6624666bb857b089f219bf3adbb944f;p=ccan diff --git a/tools/ccanlint/tests/tests_pass.c b/tools/ccanlint/tests/tests_pass.c index 1d3c0182..6c1172a7 100644 --- a/tools/ccanlint/tests/tests_pass.c +++ b/tools/ccanlint/tests/tests_pass.c @@ -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);