summaryrefslogtreecommitdiffstats
path: root/tests/tdef/tdef_test.ok
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-02-06 01:08:43 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2019-02-06 01:05:37 +0000
commit7b740f72c3f63ca4fdaf9219bfe413a26e67bc71 (patch)
treec6e9cb11493764e58dd475ed6ee32a67f08bcb34 /tests/tdef/tdef_test.ok
parent74c4c4e91a4270f19cdb20164101fc1bd99eda37 (diff)
platform independence fix: tdef range tests
Run INT_MAX and ULONG_MAX related tests only manually, remove from automatic testing. This will hopefully fix recent build failures on various platforms. Add a 64 bit output example for expected results when invoking `./tdef_test range'. This is not checked automatically and merely serves for manual reference. For vty tests, use 32bit max values instead of INT_MAX and ULONG_MAX. Change-Id: I6242243bde1d7ddebb858512a1f0b07f4ec3e5c2
Diffstat (limited to 'tests/tdef/tdef_test.ok')
-rw-r--r--tests/tdef/tdef_test.ok41
1 files changed, 1 insertions, 40 deletions
diff --git a/tests/tdef/tdef_test.ok b/tests/tdef/tdef_test.ok
index cf4b77f5..6e6ba004 100644
--- a/tests/tdef/tdef_test.ok
+++ b/tests/tdef/tdef_test.ok
@@ -50,16 +50,6 @@ osmo_tdef_get(1001, s) = 60
osmo_tdef_get(1001, ms) = 60000
osmo_tdef_get(1001, m) = 1
osmo_tdef_get(1001, custom-unit) = 60000
-T1002=307445734561825860m
-osmo_tdef_get(1002, s) = 18446744073709551600
-osmo_tdef_get(1002, ms) = 18446744073709551615
-osmo_tdef_get(1002, m) = 307445734561825860
-osmo_tdef_get(1002, custom-unit) = 307445734561825860
-T1003=18446744073709551615m
-osmo_tdef_get(1003, s) = 18446744073709551615
-osmo_tdef_get(1003, ms) = 18446744073709551615
-osmo_tdef_get(1003, m) = 18446744073709551615
-osmo_tdef_get(1003, custom-unit) = 18446744073709551615
T1004=1ms
osmo_tdef_get(1004, s) = 1
osmo_tdef_get(1004, ms) = 1
@@ -85,31 +75,6 @@ osmo_tdef_get(1008, s) = 0
osmo_tdef_get(1008, ms) = 0
osmo_tdef_get(1008, m) = 0
osmo_tdef_get(1008, custom-unit) = 0
-T2147483647=18446744073709551615s
-osmo_tdef_get(2147483647, s) = 18446744073709551615
-osmo_tdef_get(2147483647, ms) = 18446744073709551615
-osmo_tdef_get(2147483647, m) = 307445734561825861
-osmo_tdef_get(2147483647, custom-unit) = 18446744073709551615
-T2147483646=18446744073709551614s
-osmo_tdef_get(2147483646, s) = 18446744073709551614
-osmo_tdef_get(2147483646, ms) = 18446744073709551615
-osmo_tdef_get(2147483646, m) = 307445734561825861
-osmo_tdef_get(2147483646, custom-unit) = 18446744073709551614
-T2147483645=9223372036854775807s
-osmo_tdef_get(2147483645, s) = 9223372036854775807
-osmo_tdef_get(2147483645, ms) = 18446744073709551615
-osmo_tdef_get(2147483645, m) = 153722867280912931
-osmo_tdef_get(2147483645, custom-unit) = 9223372036854775807
-T2147483644=18446744073709551615m
-osmo_tdef_get(2147483644, s) = 18446744073709551615
-osmo_tdef_get(2147483644, ms) = 18446744073709551615
-osmo_tdef_get(2147483644, m) = 18446744073709551615
-osmo_tdef_get(2147483644, custom-unit) = 18446744073709551615
-T-2147483648=18446744073709551615s
-osmo_tdef_get(-2147483648, s) = 18446744073709551615
-osmo_tdef_get(-2147483648, ms) = 18446744073709551615
-osmo_tdef_get(-2147483648, m) = 307445734561825861
-osmo_tdef_get(-2147483648, custom-unit) = 18446744073709551615
T0=1custom-unit
osmo_tdef_get(0, s) = 1
osmo_tdef_get(0, ms) = 1
@@ -167,16 +132,12 @@ state=A T=1, 76.954322 s remaining
Total time passed: 169.137034 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
-- test large T:
- --> M (configured as T2147483647 18446744073709551615 s) rc=0; state=M T=2147483647, 2147483647.000000 s remaining
-- test T<0:
- --> N (configured as T-2147483648 18446744073709551615 s) rc=0; state=N T=-2147483648, 2147483647.000000 s remaining
- test T=0:
--> O (no timer configured for this state)
- test no timer:
--> X (no timer configured for this state)
- test undefined timer, using default_val arg of osmo_tdef_fsm_inst_state_chg(), here passed as 999:
- --> Y (configured as T666 18446744073709551615 -) rc=0; state=Y T=666, 999.000000 s remaining
+ --> 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)
--> B (configured as T2 100 ms) rc=0; state=B T=2, 1.000000 s remaining