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