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
diff --git a/tests/fsm/fsm_test.err b/tests/fsm/fsm_test.err
index 17a2f2e..153963f 100644
--- a/tests/fsm/fsm_test.err
+++ b/tests/fsm/fsm_test.err
@@ -1,10 +1,10 @@
Checking FSM allocation
[0;mTest_FSM(my_id){NULL}: Allocated
-[0;mTest_FSM(my_id){NULL}: Received Event 1
-[0;mTest_FSM(my_id){NULL}: Event 1 not permitted
-[0;mTest_FSM(my_id){NULL}: Received Event 0
+[0;mTest_FSM(my_id){NULL}: Received Event EV_B
+[0;mTest_FSM(my_id){NULL}: Event EV_B not permitted
+[0;mTest_FSM(my_id){NULL}: Received Event EV_A
[0;mTest_FSM(my_id){NULL}: state_chg to ONE
-[0;mTest_FSM(my_id){ONE}: Received Event 1
+[0;mTest_FSM(my_id){ONE}: Received Event EV_B
[0;mTest_FSM(my_id){ONE}: state_chg to TWO
[0;mTest_FSM(my_id){TWO}: Timeout of T2342
[0;mTimer