From 0d66a226c98d0c5b5bced64be3663e52ea6cfb9d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 15 Feb 2011 23:02:16 +1030 Subject: [PATCH] failtest: fix history when --failpath used Correctly mark which calls we failed. --- ccan/failtest/failtest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) { -- 2.39.2