From: Rusty Russell Date: Tue, 15 Feb 2011 12:32:16 +0000 (+1030) Subject: failtest: fix history when --failpath used X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=0d66a226c98d0c5b5bced64be3663e52ea6cfb9d failtest: fix history when --failpath used Correctly mark which calls we failed. --- diff --git a/ccan/failtest/failtest.c b/ccan/failtest/failtest.c index a9e1aa49..4b5ab10a 100644 --- a/ccan/failtest/failtest.c +++ b/ccan/failtest/failtest.c @@ -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)) {