diff options
author | Harald Welte <laforge@osmocom.org> | 2019-12-01 13:38:20 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2019-12-01 13:45:03 +0100 |
commit | ae5016f1938dfb87817cc6d9ceb84cb361e4b17e (patch) | |
tree | 31a21e33d08f9e48d28855fa86e7dd1489fbe60c /tests/tdef | |
parent | 7a35b78648a3a0761cbb0263b2d75bb5a6f2a3a2 (diff) |
Check for osmo_fsm_register() error return value
Change-Id: Idbc1557739b2a253b73914e6f1f18a6d169d882e
Diffstat (limited to 'tests/tdef')
-rw-r--r-- | tests/tdef/tdef_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tdef/tdef_test.c b/tests/tdef/tdef_test.c index 276330a8..9c0808ea 100644 --- a/tests/tdef/tdef_test.c +++ b/tests/tdef/tdef_test.c @@ -475,7 +475,7 @@ int main(int argc, char **argv) log_set_print_category(osmo_stderr_target, 1); log_set_use_color(osmo_stderr_target, 0); - osmo_fsm_register(&test_tdef_fsm); + OSMO_ASSERT(osmo_fsm_register(&test_tdef_fsm) == 0); test_tdef_get(argc > 1); test_tdef_get_nonexisting(); |