summaryrefslogtreecommitdiffstats
path: root/tests/fsm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fsm')
-rw-r--r--tests/fsm/fsm_test.c13
-rw-r--r--tests/fsm/fsm_test.err2
2 files changed, 1 insertions, 14 deletions
diff --git a/tests/fsm/fsm_test.c b/tests/fsm/fsm_test.c
index 0f29a2e4..859b78dc 100644
--- a/tests/fsm/fsm_test.c
+++ b/tests/fsm/fsm_test.c
@@ -221,20 +221,7 @@ do { \
/* allocate FSM instance without id, there should be a name without id */
fi = osmo_fsm_inst_alloc(&fsm, g_ctx, NULL, LOGL_DEBUG, NULL);
OSMO_ASSERT(fi);
- /* CURRENT BUG: here I want to just do
assert_name("Test_FSM");
- * but when allocated with a NULL id, the fsm's name remains unset. Hence: */
- {
- const char *expected_name = "Test_FSM";
- const char *name = osmo_fsm_inst_name(fi);
- fprintf(stderr, " osmo_fsm_inst_name() == %s\n", osmo_quote_str(name, -1));
- if (safe_strcmp(name, expected_name)) {
- fprintf(stderr, " ERROR: expected %s\n", osmo_quote_str(expected_name, -1));
- OSMO_ASSERT(false);
- }
- OSMO_ASSERT(osmo_fsm_inst_find_by_name(&fsm, "Test_FSM") == NULL); /* <- ERROR */
- fprintf(stderr, " osmo_fsm_inst_find_by_name(%s) == NULL\n", osmo_quote_str(expected_name, -1));
- }
change_id("my_id");
change_id("another_id");
diff --git a/tests/fsm/fsm_test.err b/tests/fsm/fsm_test.err
index bc159bda..c4ee46f9 100644
--- a/tests/fsm/fsm_test.err
+++ b/tests/fsm/fsm_test.err
@@ -13,7 +13,7 @@ Checking FSM allocation
--- 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_find_by_name("Test_FSM") == fi
osmo_fsm_inst_update_id("my_id")
rc == 0, ok
osmo_fsm_inst_name() == "Test_FSM(my_id)"