net: tests: Fix 6lo tests
UDP length was wrongly set and test count was hardcoded. Change-Id: Iade959e1b8c3580b43aa2a9ff1fc10eb5a462f2f Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
parent
9ea261ed4e
commit
142ca7f01e
1 changed files with 2 additions and 2 deletions
|
@ -231,7 +231,7 @@ static struct net_buf *create_buf(struct net_6lo_data *data)
|
|||
frag->data[4] = len >> 8;
|
||||
frag->data[5] = (uint8_t) len;
|
||||
frag->data[44] = len >> 8;
|
||||
frag->data[4] = (uint8_t) len;
|
||||
frag->data[45] = (uint8_t) len;
|
||||
|
||||
data->ipv6.len[0] = len >> 8;
|
||||
data->ipv6.len[1] = (uint8_t) len;
|
||||
|
@ -429,7 +429,7 @@ static void main_fiber(void)
|
|||
for (count = 0, pass = 0; count < ARRAY_SIZE(tests); count++) {
|
||||
TC_START(tests[count].name);
|
||||
|
||||
if (test_6lo(tests[1].data)) {
|
||||
if (test_6lo(tests[count].data)) {
|
||||
TC_END(FAIL, "failed\n");
|
||||
} else {
|
||||
TC_END(PASS, "passed\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue