X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Frun_tests_valgrind.c;fp=tools%2Fccanlint%2Ftests%2Frun_tests_valgrind.c;h=d3cdb9c78c5929be4fa53300bdcc71eaaa2457a9;hp=6e18338d19f0c2edf3a119d4805f5fe02913f6ed;hb=016a19d260cd7f4afeb5b2b2cc28c8bbed1cd170;hpb=f9423c171395571f9880286190d9cf63da147668 diff --git a/tools/ccanlint/tests/run_tests_valgrind.c b/tools/ccanlint/tests/run_tests_valgrind.c index 6e18338d..d3cdb9c7 100644 --- a/tools/ccanlint/tests/run_tests_valgrind.c +++ b/tools/ccanlint/tests/run_tests_valgrind.c @@ -17,6 +17,8 @@ #include #include +struct ccanlint run_tests_vg; + /* Note: we already test safe_mode in run_tests.c */ static const char *can_run_vg(struct manifest *m) { @@ -183,15 +185,17 @@ struct ccanlint run_tests_vg = { .can_run = can_run_vg, .check = do_run_tests_vg, .handle = run_under_debugger_vg, - .takes_options = true + .takes_options = true, + .needs = "tests_pass" }; -REGISTER_TEST(run_tests_vg, &run_tests, NULL); +REGISTER_TEST(run_tests_vg); struct ccanlint run_tests_vg_leak = { .key = "tests_pass_valgrind_noleaks", .name = "Module's run and api tests leak memory", .check = do_leakcheck_vg, + .needs = "tests_pass_valgrind" }; -REGISTER_TEST(run_tests_vg_leak, &run_tests_vg, NULL); +REGISTER_TEST(run_tests_vg_leak);