aboutsummaryrefslogtreecommitdiffstats
path: root/src/fsm.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-04-09 00:42:12 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-04-09 17:57:15 +0200
commit975ee6bd44ca18c82ecf5aea91c361baf248a0ff (patch)
tree26b1a4f94baeee8f06d41ac0f599a6d553709119 /src/fsm.c
parent2bcc873e93be0554694ade1f2ee6ef0ac8011d05 (diff)
fsm_test: more thoroughly test FSM inst ids and names
Place id and name testing in its separate section, test_id_api(). Add a test that actually allocates an FSM instance with a NULL id, which is allowed, but uncovers a bug of an unset FSM instance name. osmo_fsm_inst_name() falls back to the fsm struct's name on NULL, but osmo_fsm_inst_find_by_name() fails to match if the instance's name is NULL (and until recently even crashed). Show this in fsm_test.c with loud comments. Add test to clear the id by passing NULL. Add test for setting an empty id. Add test for setting an invalid identifier (osmo_identifier_valid() == false). Change-Id: I646ed918576ce196c395dc5f42a1507c52ace2c5
Diffstat (limited to 'src/fsm.c')
0 files changed, 0 insertions, 0 deletions