Skip to content

Conversation

@13627105546
Copy link
Contributor

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.

Note: Please adhere to Contributing Guidelines.

Summary

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.

Impact

  • Users: Users running usrsocktest to verify user socket implementations.
  • Build: No impact on build configuration.
  • Compatibility: Updates test expectations to match the corrected kernel behavior where POLLIN is only set when data is actually available.

Testing

  • Verification: Verified that usrsocktest now passes with the updated kernel changes.
  • Target: Sim/QEMU with usrsock enabled.

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>
@xiaoxiang781216
Copy link
Contributor

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.

but return POLLIN is right behaviour after the connection established even without data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants