X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_pass_valgrind.c;h=4365f2a60227bc1a259ad4671d23efa72f87f0e9;hp=30a806eb934bd5cf9799a8b74ab5e88c348d1187;hb=30d5682cc59801c553d71c2d9ababbbd48578576;hpb=051db34fb275491d4d5dfa5bf7970e8e525766d8 diff --git a/tools/ccanlint/tests/tests_pass_valgrind.c b/tools/ccanlint/tests/tests_pass_valgrind.c index 30a806eb..4365f2a6 100644 --- a/tools/ccanlint/tests/tests_pass_valgrind.c +++ b/tools/ccanlint/tests/tests_pass_valgrind.c @@ -121,6 +121,7 @@ static void do_run_tests_vg(struct manifest *m, output = grab_file(i, "valgrind.log", NULL); if (!output || output[0] == '\0') { err = NULL; + i->leak_info = NULL; } else { i->leak_info = get_leaks(output, &err); } @@ -193,7 +194,7 @@ REGISTER_TEST(tests_pass_valgrind); struct ccanlint tests_pass_valgrind_noleaks = { .key = "tests_pass_valgrind_noleaks", - .name = "Module's run and api tests leak memory", + .name = "Module's run and api tests have no memory leaks", .check = do_leakcheck_vg, .needs = "tests_pass_valgrind" };