Repository navigation
Conversation
Add two cases to cmocka_net_local_dgram. test_local_dgram_pair_path: F_GETPATH of the ends of a socket pair must give "local:[socketpairN]", with N a decimal number from a counter: the same N for both ends of a pair, and a different N for the next pair. test_local_dgram_pair_noname: connect() and sendto() of a datagram socket to that name must fail with ENOENT, bind() of the name must succeed, and the pair must still work. The cases need CONFIG_FS_IOCTL_FILEPATH; without it they are skipped. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
depends-on: apache/nuttx#22469
Summary
Two new cases in
cmocka_net_local_dgram.test_local_dgram_pair_path:F_GETPATHof the ends of a socket pair must givelocal:[socketpairN], with N a decimal number from a counter: the same N for both ends of a pair, and a different N for the next pair.test_local_dgram_pair_noname:connect()andsendto()of a datagram socket to that name must fail withENOENT,bind()of the name must succeed, and the pair must still work. WithoutCONFIG_FS_IOCTL_FILEPATHthe cases are skipped.Impact
Test only. The cases fail until apache/nuttx#22469 merges.
Testing
qemu-armv8a:nsh (flat), CI image, QEMU TCG: both cases FAILED on nuttx master, PASSED with apache/nuttx#22469; the other cases of
cmocka_net_local_dgrampass on both. Builds with-Werror: qemu-armv8a:nsh, qemu-armv8a:knsh and rv-virt:knetnsh64 (kernel,make import), rv-virt:netnsh64.