summaryrefslogtreecommitdiff
path: root/cesar/cp2/msg
diff options
context:
space:
mode:
authorlaranjeiro2008-06-27 14:31:19 +0000
committerlaranjeiro2008-06-27 14:31:19 +0000
commitb7868b19ee39c159cb34aca2fb91d20e550ba9f9 (patch)
tree0eca1202da632f4e2760a4c95f4be7efe65ade0e /cesar/cp2/msg
parent66342739b29f35427a0cebcc45242e1b1b3ef3c8 (diff)
cp2/msg : Fix a tested to verify the hfid data in the CC_WHO_RU.CNF mme.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2466 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp2/msg')
-rw-r--r--cesar/cp2/msg/test/src/msg_cc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/cesar/cp2/msg/test/src/msg_cc.c b/cesar/cp2/msg/test/src/msg_cc.c
index 476039be28..1b411b6a4b 100644
--- a/cesar/cp2/msg/test/src/msg_cc.c
+++ b/cesar/cp2/msg/test/src/msg_cc.c
@@ -94,6 +94,8 @@ test_case_msg_cc_who_ru (void)
cp_mme_rx_t *mme;
cp_msg_cc_who_ru_cnf_t cnf;
cp_sta_own_data_t *own_data;
+ u8 hfid[CP_HFID_SIZE+1];
+ uint i;
test_case_begin (test, "CC_WHO_RU.REQ : Send");
@@ -152,8 +154,11 @@ test_case_msg_cc_who_ru (void)
test_fail_if (data != nid, "Wrong NID");
bitstream_access (&stream, &data, 48);
test_fail_if (data != own_mac_addr, "Wrong Mac @");
- data = strcmp ((char *)buffer + bitstream_bytes_processed(&stream),
- "Hello world\0");
+
+ for (i = 0; i < CP_HFID_SIZE; i++)
+ bitstream_access (&stream, &hfid[i], 8);
+
+ data = strcmp ((char *)hfid, "Hello world\0");
test_fail_if (data != 0, "Wrong HFID");
}
test_end;