Skip to content

testing/nettest: add cmocka test for local socket SCM_RIGHTS - #3740

Open
Bogdan0759 wants to merge 1 commit into
apache:masterfrom
Bogdan0759:test-local-scm-rights
Open

testing/nettest: add cmocka test for local socket SCM_RIGHTS#3740
Bogdan0759 wants to merge 1 commit into
apache:masterfrom
Bogdan0759:test-local-scm-rights

Conversation

@Bogdan0759

Copy link
Copy Markdown

Summary

Add CMocka regression test case to verify local socket SCM_RIGHTS behavior when the file descriptor table is exhausted.
Related to kernel fix: apache/nuttx#19902

Impact

Adds automated test for local socket SCM_RIGHTS fd exhaustion handling.

Testing

Board: qemu_intel64:nsh.
Ran cmocka_net_local in nsh.

acassis
acassis previously approved these changes Aug 20, 2026
@xiaoxiang781216

Copy link
Copy Markdown
Contributor

@Bogdan0759 please fix the style issue:

fcf6d4b81 Merge 02e4683e0955ed936ee42a6390b3dceb5ff5a858 into 68aa7a838bfcbcc1eac16a34458279ba7b0f3ca2
02e4683e0 testing/nettest: add cmocka test for local socket SCM_RIGHTS
../nuttx/tools/checkpatch.sh -c -u -m -g 68aa7a838bfcbcc1eac16a34458279ba7b0f3ca2..HEAD
ERROR __main__.py:618: Check failed: /home/runner/work/nuttx-apps/nuttx-apps/apps/testing/nettest/CMakeLists.txt

cmake-format check failed, run following command to update the style:
  $ cmake-format <src> -o <dst>

Add CMocka regression test case to verify local socket SCM_RIGHTS
behavior when the file descriptor table is exhausted.

Signed-off-by: Bogdan <Bogdan4ik0759@gmail.com>
@Bogdan0759
Bogdan0759 dismissed stale reviews from xiaoxiang781216 and acassis via bff59ce August 21, 2026 16:52
@Bogdan0759
Bogdan0759 force-pushed the test-local-scm-rights branch from 02e4683 to bff59ce Compare August 21, 2026 16:52
@Bogdan0759

Copy link
Copy Markdown
Author

@Bogdan0759 please fix the style issue:

fcf6d4b81 Merge 02e4683e0955ed936ee42a6390b3dceb5ff5a858 into 68aa7a838bfcbcc1eac16a34458279ba7b0f3ca2
02e4683e0 testing/nettest: add cmocka test for local socket SCM_RIGHTS
../nuttx/tools/checkpatch.sh -c -u -m -g 68aa7a838bfcbcc1eac16a34458279ba7b0f3ca2..HEAD
ERROR __main__.py:618: Check failed: /home/runner/work/nuttx-apps/nuttx-apps/apps/testing/nettest/CMakeLists.txt

cmake-format check failed, run following command to update the style:
  $ cmake-format <src> -o <dst>

Done

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.

4 participants