Commit 8f8b0216 authored by Rusty Russell's avatar Rusty Russell

failtest: print complete history when we detect a leak.

parent f2a12479
......@@ -330,8 +330,9 @@ static NORETURN void failtest_cleanup(bool forced_cleanup, int status)
if (!history[i].cleanup)
continue;
if (!forced_cleanup) {
printf("Leak at %s:%u\n",
history[i].file, history[i].line);
printf("Leak at %s:%u: --failpath=%s\n",
history[i].file, history[i].line,
failpath_string());
status = 1;
}
history[i].cleanup(&history[i].u);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment