diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-03-06 06:03:24 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-03-06 06:59:47 +0100 |
commit | 4f54c6c48d90ee94c3115a8ea6c60333e398e116 (patch) | |
tree | 1c7e8496794ee1f0758f530292aba92f191e2b1f /tests/tdef/tdef_test.ok | |
parent | 5734bff3b01da2a7369da07f77ad617c3ac32096 (diff) |
tdef_test: tweak output to prepare for a fix
- Always print the state after a state transition.
This shows that actually state transitions are missing for states that have
no timer defined. This is a bug in tdef_test.c, to be fixed subsequently.
- Instead of total time passed since start, print the individual fake time
intervals. Omit initial useless zero fake time advance.
- Add two more state transitions, back out from and into a state that has no
timeout set.
Change-Id: Icb31af96d37741e256ff07868f3d4f5c48cdda74
Diffstat (limited to 'tests/tdef/tdef_test.ok')
-rw-r--r-- | tests/tdef/tdef_test.ok | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/tdef/tdef_test.ok b/tests/tdef/tdef_test.ok index 6e6ba004..1acf0e60 100644 --- a/tests/tdef/tdef_test.ok +++ b/tests/tdef/tdef_test.ok @@ -110,7 +110,6 @@ T7=50s osmo_tdef_get(7, s) = 50 test_tdef_state_timeout() -Total time passed: 0.000000 s state=A T=0, no timeout --> A (configured as T1 100 s) rc=0; state=A T=1, 100.000000 s remaining --> B (configured as T2 100 ms) rc=0; state=B T=2, 1.000000 s remaining @@ -121,25 +120,27 @@ state=A T=0, no timeout --> I (configured as T9 5 m) rc=0; state=I T=9, 300.000000 s remaining --> J (configured as T10 20 m) rc=0; state=J T=10, 1200.000000 s remaining - test keep_timer: -Total time passed: 123.045678 s +Time passes: 123.045678 s state=J T=10, 1076.954322 s remaining --> K (configured as T0(keep_timer) 1 custom-unit) rc=0; state=K T=10, 1076.954322 s remaining --> A (configured as T1 100 s) rc=0; state=A T=1, 100.000000 s remaining -Total time passed: 146.091356 s +Time passes: 23.045678 s state=A T=1, 76.954322 s remaining --> K (configured as T0(keep_timer) 1 custom-unit) rc=0; state=K T=1, 76.954322 s remaining --> A (configured as T1 100 s) rc=0; state=A T=1, 100.000000 s remaining -Total time passed: 169.137034 s +Time passes: 23.045678 s state=A T=1, 76.954322 s remaining --> L (configured as T123(keep_timer) 1 s) rc=0; state=L T=123, 76.954322 s remaining + --> O (no timer configured for this state) state=L T=123, 76.954322 s remaining + --> L (configured as T123(keep_timer) 1 s) rc=0; state=L T=123, 76.954322 s remaining - test T=0: - --> O (no timer configured for this state) + --> O (no timer configured for this state) state=L T=123, 76.954322 s remaining - test no timer: - --> X (no timer configured for this state) + --> X (no timer configured for this state) state=L T=123, 76.954322 s remaining - test undefined timer, using default_val arg of osmo_tdef_fsm_inst_state_chg(), here passed as 999: --> Y (configured as T666 0 -) rc=0; state=Y T=666, 999.000000 s remaining - test disallowed transition: - --> Z (no timer configured for this state) + --> Z (no timer configured for this state) state=Y T=666, 999.000000 s remaining --> B (configured as T2 100 ms) rc=0; state=B T=2, 1.000000 s remaining --> C (configured as T3 100 m) rc=0; state=C T=3, 6000.000000 s remaining --> D (configured as T4 100 custom-unit) rc=0; state=D T=4, 100.000000 s remaining |