aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fsm/fsm_test.err
blob: bc159bda92b45a3d19424cce5822f809452bb915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Checking FSM allocation
Test_FSM(my_id){NULL}: Allocated
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 EV_B
Test_FSM(my_id){ONE}: state_chg to TWO
Test_FSM(my_id){TWO}: Timeout of T2342
Timer
Test_FSM(my_id){TWO}: Deallocated

--- test_id_api()
Test_FSM{NULL}: Allocated
  osmo_fsm_inst_name() == "Test_FSM"
  osmo_fsm_inst_find_by_name("Test_FSM") == NULL
osmo_fsm_inst_update_id("my_id")
    rc == 0, ok
  osmo_fsm_inst_name() == "Test_FSM(my_id)"
  osmo_fsm_inst_find_by_name("Test_FSM(my_id)") == fi
  osmo_fsm_inst_find_by_id("my_id") == fi
osmo_fsm_inst_update_id("another_id")
    rc == 0, ok
  osmo_fsm_inst_name() == "Test_FSM(another_id)"
  osmo_fsm_inst_find_by_name("Test_FSM(another_id)") == fi
  osmo_fsm_inst_find_by_id("another_id") == fi
osmo_fsm_inst_update_id(NULL)
    rc == 0, ok
  osmo_fsm_inst_name() == "Test_FSM"
  osmo_fsm_inst_find_by_name("Test_FSM") == fi
osmo_fsm_inst_update_id(NULL)
    rc == 0, ok
  osmo_fsm_inst_name() == "Test_FSM"
  osmo_fsm_inst_find_by_name("Test_FSM") == fi
osmo_fsm_inst_update_id("arbitrary_id")
    rc == 0, ok
  osmo_fsm_inst_name() == "Test_FSM(arbitrary_id)"
  osmo_fsm_inst_find_by_name("Test_FSM(arbitrary_id)") == fi
  osmo_fsm_inst_find_by_id("arbitrary_id") == fi
osmo_fsm_inst_update_id("")
Attempting to allocate FSM instance of type 'Test_FSM' with illegal identifier ''
    rc == -22, ok
  osmo_fsm_inst_name() == "Test_FSM(arbitrary_id)"
  osmo_fsm_inst_find_by_name("Test_FSM(arbitrary_id)") == fi
osmo_fsm_inst_update_id("invalid.id")
Attempting to allocate FSM instance of type 'Test_FSM' with illegal identifier 'invalid.id'
    rc == -22, ok
  osmo_fsm_inst_name() == "Test_FSM(arbitrary_id)"
  osmo_fsm_inst_find_by_name("Test_FSM(arbitrary_id)") == fi

--- test_id_api() done

Test_FSM(arbitrary_id){NULL}: Terminating (cause = OSMO_FSM_TERM_REQUEST)
Test_FSM(arbitrary_id){NULL}: Freeing instance
Test_FSM(arbitrary_id){NULL}: Deallocated