From 84e7f50b3f831e856c80c308d9ef13ffccdf625d Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Tue, 27 Feb 2018 12:01:01 +0900 Subject: [PATCH] update test code (#22) --- test/basic/attach_test.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/test/basic/attach_test.c b/test/basic/attach_test.c index f104dbe75..b3456f256 100644 --- a/test/basic/attach_test.c +++ b/test/basic/attach_test.c @@ -48,8 +48,8 @@ static void attach_test1(abts_case *tc, void *data) "0002010000000153 12172c5949640125 006b000518000c00 00004900203311c6" "03c6a6d67f695e5a c02bb75b381b693c 3893a6d932fd9182 3544e3e79b"; char *_emm_information = - "000b402a00000300 000005c00100009d 000800020001001a 001413279fcc7266" - "0307614771304112 527563490100"; + "000b403b00000300 000005c00100009d 000800020001001a 002524271f9b491e" + "030761430f10004e 0065007800740045 0050004347812072 11240563490100"; mongoc_collection_t *collection = NULL; bson_t *doc = NULL; @@ -244,7 +244,7 @@ static void attach_test1(abts_case *tc, void *data) ABTS_INT_EQUAL(tc, CORE_OK, rv); CORE_HEX(_emm_information, strlen(_emm_information), tmp); ABTS_TRUE(tc, memcmp(recvbuf->payload, tmp, 28) == 0); - ABTS_TRUE(tc, memcmp(recvbuf->payload+43, tmp+43, 3) == 0); + ABTS_TRUE(tc, memcmp(recvbuf->payload+32, tmp+32, 20) == 0); pkbuf_free(recvbuf); core_sleep(time_from_msec(300)); @@ -882,9 +882,8 @@ static void attach_test3(abts_case *tc, void *data) "05ff9c6791b8503a 032c6effa7"; char *_emm_information = - "000b" - "402a000003000000 05c0020000c80008 00020002001a0014 1327dc833e850307" - "6147717042911120 8a490100"; + "000b403b00000300 000005c0020000c8 000800020002001a 002524276782702a" + "030761430f10004e 0065007800740045 0050004347812072 11941563490100"; char *_ue_context_release_command = "0017" @@ -1070,7 +1069,7 @@ static void attach_test3(abts_case *tc, void *data) ABTS_INT_EQUAL(tc, CORE_OK, rv); CORE_HEX(_emm_information, strlen(_emm_information), tmp); ABTS_TRUE(tc, memcmp(recvbuf->payload, tmp, 28) == 0); - ABTS_TRUE(tc, memcmp(recvbuf->payload+43, tmp+43, 3) == 0); + ABTS_TRUE(tc, memcmp(recvbuf->payload+32, tmp+32, 20) == 0); pkbuf_free(recvbuf); /* Retreive M-TMSI */