mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
usrsocktest: fix TEST_ASSERT_EQUAL fail for POLLIN
This assertion should be removed because the POLLIN event is now only raised when there is data pending to be received. Previously, POLLIN was incorrectly set as soon as the connection was established, even when no data was available, which was not consistent with the expected behavior. Signed-off-by: guanyi3 <guanyi3@xiaomi.com>
This commit is contained in:
parent
df30f84f33
commit
a75fa37090
1 changed files with 0 additions and 1 deletions
|
|
@ -871,7 +871,6 @@ static void remote_disconnect_poll2(struct usrsocktest_daemon_conf_s *dconf)
|
|||
TEST_ASSERT_EQUAL(1, ret);
|
||||
TEST_ASSERT_EQUAL(0, pfd.revents & POLLERR);
|
||||
TEST_ASSERT_EQUAL(POLLHUP, pfd.revents & POLLHUP);
|
||||
TEST_ASSERT_EQUAL(*events & POLLIN, pfd.revents & POLLIN);
|
||||
TEST_ASSERT_EQUAL(0, pfd.revents & POLLOUT);
|
||||
TEST_ASSERT_EQUAL(1, usrsocktest_daemon_get_num_active_sockets());
|
||||
TEST_ASSERT_EQUAL(0, usrsocktest_daemon_get_num_connected_sockets());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue