Skip to content

Commit

Permalink
Update socket_api_test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Antti Kauppila authored Feb 13, 2018
1 parent beddb01 commit 59545f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/nanostack/unittest/libNET/socket_api/socket_api_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ TEST(SocketAPI, socket_getsockopt)
status = socket_getsockopt(sock_id, SOCKET_IPPROTO_IPV6, SOCKET_IPV6_UNICAST_HOPS, &option, &option_len);
BYTES_EQUAL(0, status);
int16_t *table = (int16_t*)option;
BYTES_EQUAL(64, table);
BYTES_EQUAL(64, table[0]);
BYTES_EQUAL(2, option_len);
option_len = 4;

Expand All @@ -898,7 +898,7 @@ TEST(SocketAPI, socket_getsockopt)
status = socket_getsockopt(sock_id, SOCKET_IPPROTO_IPV6, SOCKET_IPV6_UNICAST_HOPS, &option, &option_len);
BYTES_EQUAL(0, status);
uint8_t *table2 = (uint8_t*)option;
BYTES_EQUAL(entry.cur_hop_limit, table2);
BYTES_EQUAL(entry.cur_hop_limit, table2[0]);
BYTES_EQUAL(2, option_len);
option_len = 4;

Expand Down

0 comments on commit 59545f9

Please sign in to comment.