update test code (#22)

This commit is contained in:
Sukchan Lee 2018-02-27 12:01:01 +09:00
parent 2bc92c5ac8
commit 84e7f50b3f
1 changed files with 6 additions and 7 deletions

View File

@ -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 */