X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Frun_tests_valgrind.c;h=310e89710829893aa15044870691ff4256408d19;hp=7ab67dbcd83f7550bf4b84a141c480fcc0c9a60a;hb=a791eb1e4c369104f90c543fe9ebafcae113ead8;hpb=7ddfc6696d29eacb3d4d896aac93721aee45d844 diff --git a/tools/ccanlint/tests/run_tests_valgrind.c b/tools/ccanlint/tests/run_tests_valgrind.c index 7ab67dbc..310e8971 100644 --- a/tools/ccanlint/tests/run_tests_valgrind.c +++ b/tools/ccanlint/tests/run_tests_valgrind.c @@ -42,11 +42,12 @@ static void do_run_tests_vg(struct manifest *m, list_for_each(list, i, list) { score->total++; if (run_command(score, timeleft, &cmdout, - "valgrind -q --error-exitcode=100 %s", + "valgrind -q --error-exitcode=100%s %s", + run_tests_vg.options ? + run_tests_vg.options : "", i->compiled)) { score->score++; } else { - score->error = "Running under valgrind"; score_file_error(score, i, 0, cmdout); } } @@ -79,7 +80,8 @@ struct ccanlint run_tests_vg = { .name = "Module's run and api tests succeed under valgrind", .can_run = can_run_vg, .check = do_run_tests_vg, - .handle = run_under_debugger_vg + .handle = run_under_debugger_vg, + .takes_options = true }; REGISTER_TEST(run_tests_vg, &run_tests, NULL);