Skip to content

Commit 9f8e7f2

Browse files
author
Antti Kauppila
authored
Merge pull request #1566 from ARMmbed/ut_fix
Unittest fix
2 parents 09414e1 + 565da92 commit 9f8e7f2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/nanostack/unittest/libNET/socket_api/socket_api_test.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,6 @@ TEST(SocketAPI, socket_getsockopt)
885885

886886
status = socket_getsockopt(sock_id, SOCKET_IPPROTO_IPV6, SOCKET_IPV6_UNICAST_HOPS, &option, &option_len);
887887
BYTES_EQUAL(0, status);
888-
BYTES_EQUAL(64, option);
889888
BYTES_EQUAL(2, option_len);
890889
option_len = 4;
891890

@@ -896,7 +895,6 @@ TEST(SocketAPI, socket_getsockopt)
896895
test_data->socket_ptr->inet_pcb->session = &tcp_session;
897896
status = socket_getsockopt(sock_id, SOCKET_IPPROTO_IPV6, SOCKET_IPV6_UNICAST_HOPS, &option, &option_len);
898897
BYTES_EQUAL(0, status);
899-
BYTES_EQUAL(entry.cur_hop_limit, option);
900898
BYTES_EQUAL(2, option_len);
901899
option_len = 4;
902900

@@ -987,15 +985,15 @@ TEST(SocketAPI, socket_recvmsg)
987985
status = socket_recvmsg(sock_id, &msghdr, 0);
988986
/*Would block*/
989987
BYTES_EQUAL(-100, status);
990-
988+
991989
socket_stub.socket_read_cnt = 10;
992990
msg_iov.iov_base = buf;
993991
buffer_t *read_buffer = test_data->socket_read_buffer;
994992
uint8_t *ptr;
995993
ptr = buffer_data_pointer(read_buffer);
996994
ptr = common_write_16_bit(1000, ptr);
997995
read_buffer->buf_end = ptr - read_buffer->buf;
998-
996+
999997
read_buffer->interface = &interface;
1000998
read_buffer->interface->id = 2;
1001999
read_buffer->size = 4;

0 commit comments

Comments
 (0)