Browse Source

state: include daemon/peer (only if !TEST_COVERAGE).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 9 years ago
parent
commit
5ac1d5df00
  1. 3
      state.c
  2. 1
      test/test_state_coverage.c

3
state.c

@ -1,4 +1,7 @@
#include <ccan/build_assert/build_assert.h>
#ifndef TEST_STATE_COVERAGE
#include <daemon/peer.h>
#endif
#include <state.h>
static inline bool high_priority(enum state state)

1
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 <ccan/tal/tal.h>
#include <stdio.h>

Loading…
Cancel
Save