From 1317771c9340a9fdc86911206cdc8719a3d2bfe6 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 20 Jan 2019 13:41:26 +0100 Subject: gsm0408_test: Fix IMEI-SV related tests to use no more than 16 digits The IMEI-SV is speified as a 16 digit number: 14 digits of IMEI plus two digits of software version. Let's not try to feed 18 digit long numbers into our functions, as the resulting behavior is unspecified. Change-Id: I6fb85a0516dc387902ad9de4fe8c1ba82d68cae6 --- tests/gsm0408/gsm0408_test.ok | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/gsm0408/gsm0408_test.ok') diff --git a/tests/gsm0408/gsm0408_test.ok b/tests/gsm0408/gsm0408_test.ok index 8f6630be..0bd101de 100644 --- a/tests/gsm0408/gsm0408_test.ok +++ b/tests/gsm0408/gsm0408_test.ok @@ -40,14 +40,14 @@ Testing Mobile Identity conversions -> MI-TLV-hex='17089a78563412907856' -> MI-str="987654321098765" rc=16 -> MI-name="IMEI-987654321098765" -- IMEI-SV 987654321098765432 - -> MI-TLV-hex='170a937856341290785634f2' - -> MI-str="987654321098765432" rc=19 - -> MI-name="IMEI-SV-987654321098765432" -- IMEI-SV 987654321098765432 - -> MI-TLV-hex='170a937856341290785634f2' - -> MI-str="987654321098765" rc=16 - -> MI-name="IMEI-SV-987654321098765432" +- IMEI-SV 9876543210987654 + -> MI-TLV-hex='17099378563412907856f4' + -> MI-str="9876543210987654" rc=17 + -> MI-name="IMEI-SV-9876543210987654" +- IMEI-SV 9876543210987654 + -> MI-TLV-hex='17099378563412907856f4' + -> MI-str="9876543210987654" rc=17 + -> MI-name="IMEI-SV-9876543210987654" - TMSI 305419896 -> MI-TLV-hex='1705f412345678' -> MI-str="305419896" rc=9 -- cgit v1.2.3