X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Frun_tests_valgrind.c;h=30a806eb934bd5cf9799a8b74ab5e88c348d1187;hb=2926cafb52b9d95646d9dafa877d53f2368d8b2c;hp=ec3a31981c21f01331fd6d1a934a95f33f452f60;hpb=b3a47758b62c98a3a981e7b822e68c37380831e3;p=ccan-lca-2011.git diff --git a/tools/ccanlint/tests/run_tests_valgrind.c b/tools/ccanlint/tests/run_tests_valgrind.c index ec3a319..30a806e 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) { @@ -177,21 +179,23 @@ static void run_under_debugger_vg(struct manifest *m, struct score *score) doesnt_matter(); } -struct ccanlint run_tests_vg = { - .key = "valgrind-tests", +struct ccanlint tests_pass_valgrind = { + .key = "tests_pass_valgrind", .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, - .takes_options = true + .takes_options = true, + .needs = "tests_pass" }; -REGISTER_TEST(run_tests_vg, &run_tests, NULL); +REGISTER_TEST(tests_pass_valgrind); -struct ccanlint run_tests_vg_leak = { - .key = "valgrind-leaks", +struct ccanlint tests_pass_valgrind_noleaks = { + .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(tests_pass_valgrind_noleaks);