Skip to content

tests: posix: rwlocks: ensure test is not skipped #88767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

cfriedt
Copy link
Member

@cfriedt cfriedt commented Apr 17, 2025

Commit 7e8ee25 moved the tests for the POSIX_RW_LOCKS Option Group from tests/posix/common testsuite to tests/posix/rwlocks.

However, there was a copy-paste error. Previously, tests would have been run only once when dynamic threads were enabled, and then skipped when dynamic threads were disabled, since that follows the posix programming model better. However, dynamic threads were never actually enabled after moving to the new testsuite. So all tests were effectively skipped.

Add the necessary options to prj.conf in order to ensure that there are sufficient dynamic threads available to run the testsuite.

Fixes #88766

@github-actions github-actions bot added the area: POSIX POSIX API Library label Apr 17, 2025
@github-actions github-actions bot requested a review from ycsin April 17, 2025 13:19
@cfriedt cfriedt requested a review from nashif April 17, 2025 13:20
@cfriedt cfriedt force-pushed the tests-posix-rwlocks-skipped branch from f64a873 to 15cf8e2 Compare April 17, 2025 13:23
@cfriedt cfriedt added the area: Tests Issues related to a particular existing or missing test label Apr 17, 2025
ycsin
ycsin previously approved these changes Apr 17, 2025
@@ -3,3 +3,7 @@ CONFIG_ZTEST=y

CONFIG_POSIX_AEP_CHOICE_BASE=y
CONFIG_POSIX_READER_WRITER_LOCKS=y

CONFIG_DYNAMIC_THREAD=y
CONFIG_DYNAMIC_THREAD_POOL_SIZE=3
Copy link
Member

@ycsin ycsin Apr 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should BUILD_ASSERT(CONFIG_DYNAMIC_THREAD_POOL_SIZE >= N_THR)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

Commit 7e8ee25 moved the tests for the
POSIX_RW_LOCKS Option Group from the tests/posix/common testsuite to
its own dedicated testsuite.

However, there was a copy-paste error. Previously, tests would have been
run only once when dynamic threads were enabled, and then skipped when
dynamic threads were disabled, since that follows the posix programming
model better. However, dynamic threads were never actually enabled after
moving to the new testsuite. So all tests were effectively skipped.

Add the necessary options to prj.conf in order to ensure that there are
sufficient dynamic threads available to run the testsuite.

Signed-off-by: Chris Friedt <[email protected]>
@kartben kartben merged commit 89dd0ef into zephyrproject-rtos:main Apr 21, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: POSIX POSIX API Library area: Tests Issues related to a particular existing or missing test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests: posix: rwlocks: all tests skipped due to copy-paste error
5 participants