Revert "examples: usrsocktest: Fix errors in NoBlockRecv and BlockRecv tests"
This reverts commit 10c715d921
.
This commit is contained in:
parent
45bcfa8b2e
commit
16dc851889
@ -265,8 +265,7 @@ static void NoBlockConnect(FAR struct usrsocktest_daemon_conf_s *dconf)
|
||||
TEST_ASSERT_EQUAL(1, ret);
|
||||
TEST_ASSERT_EQUAL_UINT8_ARRAY("a", data, 1);
|
||||
TEST_ASSERT_EQUAL(sizeof(remoteaddr), addrlen);
|
||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(&remoteaddr, &addr,
|
||||
addrlen - sizeof(addr.sin_zero));
|
||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(&remoteaddr, &addr, addrlen);
|
||||
TEST_ASSERT_EQUAL(1, usrsocktest_daemon_get_num_connected_sockets());
|
||||
TEST_ASSERT_EQUAL(1, usrsocktest_daemon_get_num_active_sockets());
|
||||
TEST_ASSERT_EQUAL(6, usrsocktest_daemon_get_recv_bytes());
|
||||
@ -283,8 +282,7 @@ static void NoBlockConnect(FAR struct usrsocktest_daemon_conf_s *dconf)
|
||||
TEST_ASSERT_EQUAL(5, ret);
|
||||
TEST_ASSERT_EQUAL_UINT8_ARRAY("abcde", data, 5);
|
||||
TEST_ASSERT_EQUAL(sizeof(remoteaddr), addrlen);
|
||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(&remoteaddr, &addr,
|
||||
addrlen - sizeof(addr.sin_zero));
|
||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(&remoteaddr, &addr, addrlen);
|
||||
TEST_ASSERT_EQUAL(1, usrsocktest_daemon_get_num_connected_sockets());
|
||||
TEST_ASSERT_EQUAL(1, usrsocktest_daemon_get_num_active_sockets());
|
||||
TEST_ASSERT_EQUAL(11, usrsocktest_daemon_get_recv_bytes());
|
||||
|
@ -197,8 +197,7 @@ static void Receive(struct usrsocktest_daemon_conf_s *dconf)
|
||||
TEST_ASSERT_EQUAL(3, ret);
|
||||
TEST_ASSERT_EQUAL_UINT8_ARRAY("abc", data, 3);
|
||||
TEST_ASSERT_EQUAL(addrlen, sizeof(remoteaddr));
|
||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(&remoteaddr, &addr,
|
||||
addrlen - sizeof(addr.sin_zero));
|
||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(&remoteaddr, &addr, addrlen);
|
||||
TEST_ASSERT_EQUAL(1, usrsocktest_daemon_get_num_connected_sockets());
|
||||
TEST_ASSERT_EQUAL(1, usrsocktest_daemon_get_num_active_sockets());
|
||||
TEST_ASSERT_EQUAL(datalen + ret, usrsocktest_daemon_get_recv_bytes());
|
||||
|
Loading…
Reference in New Issue
Block a user