child-sa: Use flags to track installation of outbound SA and policies separately
[strongswan.git] / src / libcharon / tests / utils / sa_asserts.h
index d23f724..216c150 100644 (file)
        test_assert_msg(_state == _child->get_state(_child), "%N != %N", \
                                        child_sa_state_names, _state, \
                                        child_sa_state_names, _child->get_state(_child)); \
-       test_assert_msg(_outbound == _child->get_outbound_state(_child), "%N != %N", \
+       typeof(outbound) _cur_out = _child->get_outbound_state(_child); \
+       test_assert_msg(_outbound == _cur_out || _outbound & _cur_out, "%N != %N", \
                                        child_sa_outbound_state_names, _outbound, \
                                        child_sa_outbound_state_names, _child->get_outbound_state(_child)); \
 })