Skip to content
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

tests: kernel/smp: mark torture test as skipped if factor is 0 #59831

Conversation

dcpleung
Copy link
Member

If CONFIG_SMP_TEST_RUN_FACTOR is zero, the switch torture test is effectively not doing anything as the k_sleep() below is not going to sleep at all, and all created threads are being terminated (almost) immediately after creation. So if run factor is zero, mark the test as skipped.

If CONFIG_SMP_TEST_RUN_FACTOR is zero, the switch torture test
is effectively not doing anything as the k_sleep() below is not
going to sleep at all, and all created threads are being
terminated (almost) immediately after creation. So if run
factor is zero, mark the test as skipped.

Signed-off-by: Daniel Leung <[email protected]>
@dcpleung

This comment was marked as outdated.

@dcpleung dcpleung marked this pull request as ready for review June 28, 2023 17:51
@nashif nashif merged commit c719b70 into zephyrproject-rtos:main Jul 21, 2023
19 checks passed
@dcpleung dcpleung deleted the tests/kernel/smp_skip_torture_test_if_factor_zero branch July 21, 2023 22:01
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.

6 participants