]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/tests_pass.c
tools: fix up warnings with -Wwrite-strings.
[ccan] / tools / ccanlint / tests / tests_pass.c
index 0edfad262c4ba02299052231691b23ce40784ff7..6c1172a75bfe1841e58b8b45c632d19b48724313 100644 (file)
@@ -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);