Commit 0d66a226 authored by Rusty Russell's avatar Rusty Russell

failtest: fix history when --failpath used

Correctly mark which calls we failed.
parent 6c02fd59
......@@ -265,7 +265,8 @@ static bool should_fail(struct failtest_call *call)
if (tolower(*failpath) != info_to_arg[call->type])
errx(1, "Failpath expected '%c' got '%c'\n",
info_to_arg[call->type], *failpath);
return isupper(*(failpath++));
call->fail = isupper(*(failpath++));
return call->fail;
}
if (!failtest_hook(history, history_num)) {
......
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