From 888dc7d31aa4b39ba8e08884c39be1c09c92f82a Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Mon, 26 Feb 2018 19:17:02 +0100 Subject: print BIG FAT ERROR message if osmo_fsm lacks event names Event names are displayed in VTY commands so all FSM should have them. Print an error message if an FSM is registered without event names. We could also return an error code, however at present no caller checks the return value of osmo_fsm_register() so this would be pointless. Add event names to the test FSM and update expected output accordingly. Change-Id: I08b100d62b5c50bf025ef87d31ea39072539cf37 Related: OS#3008 --- tests/fsm/fsm_test.err | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/fsm/fsm_test.err') diff --git a/tests/fsm/fsm_test.err b/tests/fsm/fsm_test.err index 17a2f2e0..153963fc 100644 --- a/tests/fsm/fsm_test.err +++ b/tests/fsm/fsm_test.err @@ -1,10 +1,10 @@ Checking FSM allocation Test_FSM(my_id){NULL}: Allocated -Test_FSM(my_id){NULL}: Received Event 1 -Test_FSM(my_id){NULL}: Event 1 not permitted -Test_FSM(my_id){NULL}: Received Event 0 +Test_FSM(my_id){NULL}: Received Event EV_B +Test_FSM(my_id){NULL}: Event EV_B not permitted +Test_FSM(my_id){NULL}: Received Event EV_A Test_FSM(my_id){NULL}: state_chg to ONE -Test_FSM(my_id){ONE}: Received Event 1 +Test_FSM(my_id){ONE}: Received Event EV_B Test_FSM(my_id){ONE}: state_chg to TWO Test_FSM(my_id){TWO}: Timeout of T2342 Timer -- cgit v1.2.3