update test code (#22)
This commit is contained in:
parent
2bc92c5ac8
commit
84e7f50b3f
|
@ -48,8 +48,8 @@ static void attach_test1(abts_case *tc, void *data)
|
||||||
"0002010000000153 12172c5949640125 006b000518000c00 00004900203311c6"
|
"0002010000000153 12172c5949640125 006b000518000c00 00004900203311c6"
|
||||||
"03c6a6d67f695e5a c02bb75b381b693c 3893a6d932fd9182 3544e3e79b";
|
"03c6a6d67f695e5a c02bb75b381b693c 3893a6d932fd9182 3544e3e79b";
|
||||||
char *_emm_information =
|
char *_emm_information =
|
||||||
"000b402a00000300 000005c00100009d 000800020001001a 001413279fcc7266"
|
"000b403b00000300 000005c00100009d 000800020001001a 002524271f9b491e"
|
||||||
"0307614771304112 527563490100";
|
"030761430f10004e 0065007800740045 0050004347812072 11240563490100";
|
||||||
|
|
||||||
mongoc_collection_t *collection = NULL;
|
mongoc_collection_t *collection = NULL;
|
||||||
bson_t *doc = 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);
|
ABTS_INT_EQUAL(tc, CORE_OK, rv);
|
||||||
CORE_HEX(_emm_information, strlen(_emm_information), tmp);
|
CORE_HEX(_emm_information, strlen(_emm_information), tmp);
|
||||||
ABTS_TRUE(tc, memcmp(recvbuf->payload, tmp, 28) == 0);
|
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);
|
pkbuf_free(recvbuf);
|
||||||
|
|
||||||
core_sleep(time_from_msec(300));
|
core_sleep(time_from_msec(300));
|
||||||
|
@ -882,9 +882,8 @@ static void attach_test3(abts_case *tc, void *data)
|
||||||
"05ff9c6791b8503a 032c6effa7";
|
"05ff9c6791b8503a 032c6effa7";
|
||||||
|
|
||||||
char *_emm_information =
|
char *_emm_information =
|
||||||
"000b"
|
"000b403b00000300 000005c0020000c8 000800020002001a 002524276782702a"
|
||||||
"402a000003000000 05c0020000c80008 00020002001a0014 1327dc833e850307"
|
"030761430f10004e 0065007800740045 0050004347812072 11941563490100";
|
||||||
"6147717042911120 8a490100";
|
|
||||||
|
|
||||||
char *_ue_context_release_command =
|
char *_ue_context_release_command =
|
||||||
"0017"
|
"0017"
|
||||||
|
@ -1070,7 +1069,7 @@ static void attach_test3(abts_case *tc, void *data)
|
||||||
ABTS_INT_EQUAL(tc, CORE_OK, rv);
|
ABTS_INT_EQUAL(tc, CORE_OK, rv);
|
||||||
CORE_HEX(_emm_information, strlen(_emm_information), tmp);
|
CORE_HEX(_emm_information, strlen(_emm_information), tmp);
|
||||||
ABTS_TRUE(tc, memcmp(recvbuf->payload, tmp, 28) == 0);
|
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);
|
pkbuf_free(recvbuf);
|
||||||
|
|
||||||
/* Retreive M-TMSI */
|
/* Retreive M-TMSI */
|
||||||
|
|
Loading…
Reference in New Issue