From 61d3aafccb6537bd957fa1ac335966689aa49e6c Mon Sep 17 00:00:00 2001 From: Scott Lystig Fritchie Date: Sat, 8 Nov 2014 15:01:03 +0900 Subject: [PATCH] Fix non-TEST compilation errors --- prototype/poc-machi/src/machi_chain_manager1.erl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prototype/poc-machi/src/machi_chain_manager1.erl b/prototype/poc-machi/src/machi_chain_manager1.erl index fa39364..56ba8b4 100644 --- a/prototype/poc-machi/src/machi_chain_manager1.erl +++ b/prototype/poc-machi/src/machi_chain_manager1.erl @@ -816,8 +816,10 @@ react_to_env_C310(P_newprop, S) -> projection_transitions_are_sane(Ps, RelativeToServer) -> projection_transitions_are_sane(Ps, RelativeToServer, false). +-ifdef(TEST). projection_transitions_are_sane_retrospective(Ps, RelativeToServer) -> projection_transitions_are_sane(Ps, RelativeToServer, true). +-endif. % TEST projection_transitions_are_sane([], _RelativeToServer, _RetrospectiveP) -> true; @@ -836,8 +838,10 @@ projection_transitions_are_sane([P1, P2|T], RelativeToServer, RetrospectiveP) -> projection_transition_is_sane(P1, P2, RelativeToServer) -> projection_transition_is_sane(P1, P2, RelativeToServer, false). +-ifdef(TEST). projection_transition_is_sane_retrospective(P1, P2, RelativeToServer) -> projection_transition_is_sane(P1, P2, RelativeToServer, true). +-endif. % TEST projection_transition_is_sane( #projection{epoch_number=Epoch1,