From a82c8d24252c2b3d22d78e5e0adb2aa6ab6a32d7 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sun, 10 Apr 2022 00:30:13 +0200 Subject: [PATCH] fix test_ranap_rab_ass_resp_decode_encode There is an extra zero octet at the end of the test data, which does not get encoded back. The test currently does not detect this, but will in upcoming patch I85e715326e1d8f4f301f82f78da109f1a7a92f30. Related: SYS#5895 Change-Id: Ifb98a52e56db1227a834c0d7b7a260314d9f547e --- tests/ranap_rab_ass/ranap_rab_ass_test.c | 2 +- tests/ranap_rab_ass/ranap_rab_ass_test.ok | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ranap_rab_ass/ranap_rab_ass_test.c b/tests/ranap_rab_ass/ranap_rab_ass_test.c index 9a98cf8..482b0fc 100644 --- a/tests/ranap_rab_ass/ranap_rab_ass_test.c +++ b/tests/ranap_rab_ass/ranap_rab_ass_test.c @@ -53,7 +53,7 @@ void test_ranap_rab_ass_req_decode_encode(void) 0xc0, 0x35, 0x00, 0x01, 0x0a, 0x09, 0x01, 0xa2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x1f, 0x76, - 0x00, 0x00, 0x40, 0x01, 0x00, 0x00 + 0x00, 0x00, 0x40, 0x01, 0x00 }; uint8_t encoded[sizeof(testvec)]; diff --git a/tests/ranap_rab_ass/ranap_rab_ass_test.ok b/tests/ranap_rab_ass/ranap_rab_ass_test.ok index aca4ff3..80def36 100644 --- a/tests/ranap_rab_ass/ranap_rab_ass_test.ok +++ b/tests/ranap_rab_ass/ranap_rab_ass_test.ok @@ -1,6 +1,6 @@ ranap_rab_ass_req_encode rc=93 -INPUT: 0000005900000100364052000001003500487822cd80102fa7201a2c0000f44c080a028000514000272028140067400000222814003c40000000503d02000227c03500010a0901a200000000000000000000000000401f76000040010000 -RESULT: 0000005900000100364052000001003500487822cd80102fa7201a2c0000f44c080a028000514000272028140067400000222814003c40000000503d02000227c03500010a0901a200000000000000000000000000401f76000040010000 +INPUT: 0000005900000100364052000001003500487822cd80102fa7201a2c0000f44c080a028000514000272028140067400000222814003c40000000503d02000227c03500010a0901a200000000000000000000000000401f760000400100 +RESULT: 0000005900000100364052000001003500487822cd80102fa7201a2c0000f44c080a028000514000272028140067400000222814003c40000000503d02000227c03500010a0901a200000000000000000000000000401f760000400100 ranap_rab_ass_resp_encode rc=46 INPUT: 6000002a000001003440230000010033401c603a7c3500010a0901a40000000000000000000000000040040a0000 RESULT: 6000002a000001003440230000010033401c603a7c3500010a0901a40000000000000000000000000040040a0000