From 5ac1d5df00a5b81798ad3c349e368cfd2e82cc9c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 22 Jan 2016 06:41:49 +1030 Subject: [PATCH] state: include daemon/peer (only if !TEST_COVERAGE). Signed-off-by: Rusty Russell --- state.c | 3 +++ test/test_state_coverage.c | 1 + 2 files changed, 4 insertions(+) diff --git a/state.c b/state.c index d762edc86..da7fd5f67 100644 --- a/state.c +++ b/state.c @@ -1,4 +1,7 @@ #include +#ifndef TEST_STATE_COVERAGE +#include +#endif #include static inline bool high_priority(enum state state) diff --git a/test/test_state_coverage.c b/test/test_state_coverage.c index 209de9722..0c8c383b1 100644 --- a/test/test_state_coverage.c +++ b/test/test_state_coverage.c @@ -927,6 +927,7 @@ bool committed_to_htlcs(const struct peer *peer) return peer->num_htlcs_to_them != 0 || peer->num_htlcs_to_us != 0; } +#define TEST_STATE_COVERAGE 1 #include "state.c" #include #include