Commit 2006aa03 authored by Rusty Russell's avatar Rusty Russell

failtest: report failpath problems correctly.

It was the wrong way around, and also it's better to show the whole
remaining failpath rather than the current letter.
parent acb6106c
No related merge requests found
...@@ -518,8 +518,8 @@ static bool should_fail(struct failtest_call *call) ...@@ -518,8 +518,8 @@ static bool should_fail(struct failtest_call *call)
} else { } else {
if (tolower((unsigned char)*failpath) if (tolower((unsigned char)*failpath)
!= info_to_arg[call->type]) != info_to_arg[call->type])
errx(1, "Failpath expected '%c' got '%c'\n", errx(1, "Failpath expected '%s' got '%c'\n",
info_to_arg[call->type], *failpath); failpath, info_to_arg[call->type]);
call->fail = cisupper(*(failpath++)); call->fail = cisupper(*(failpath++));
return call->fail; return call->fail;
} }
......
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