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: condvar_api: fix permissions to multiple condvar #34778

Merged

Conversation

dcpleung
Copy link
Member

@dcpleung dcpleung commented May 3, 2021

The permission to use multiple_condvar is not granted to test
test_condvar_multiple_threads_wait_wake, which results in
bunch or permission error messages, and actually not testing
the conditional variables. This grants the permission to
the those conditional variables to the test threads. Also,
replace the k_yield() with k_msleep() to allow all created
threads time to run. A simply k_yield() might let a few to
run before the next batch of "waking" threads start to run,
resulting in some conditional variables not being initialized
but trying to wake.

Fixes #34777

Signed-off-by: Daniel Leung daniel.leung@intel.com

The permission to use multiple_condvar is not granted to test
test_condvar_multiple_threads_wait_wake, which results in
bunch or permission error messages, and actually not testing
the conditional variables. This grants the permission to
the those conditional variables to the test threads. Also,
replace the k_yield() with k_msleep() to allow all created
threads time to run. A simply k_yield() might let a few to
run before the next batch of "waking" threads start to run,
resulting in some conditional variables not being initialized
but trying to wake.

Fixes zephyrproject-rtos#34777

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
@dcpleung dcpleung requested review from andyross and nashif as code owners May 3, 2021 17:39
@github-actions github-actions bot added area: Kernel area: Tests Issues related to a particular existing or missing test labels May 3, 2021
@nashif nashif requested a review from enjiamai May 3, 2021 17:41
This adds k_thread_join() to the thread being used in
test_sem_take_timeout_isr() to avoid a thread re-use error
in the test after this one.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
@nashif nashif merged commit 3a7e0f8 into zephyrproject-rtos:master May 3, 2021
@dcpleung dcpleung deleted the tests_kernel_condvar_api_perm_fix branch May 4, 2021 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Kernel area: Tests Issues related to a particular existing or missing test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

semaphore and condvar_api tests fails after ARM64 FPU context switch commit on qemu_cortex_a53_smp
3 participants