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: ztest: fix testcase might fail when assertion fail in ISR #34846

Merged

Conversation

enjiamai
Copy link
Collaborator

@enjiamai enjiamai commented May 5, 2021

Put the testcase test_catch_assert_in_isr() to execute last, to prevent
it affects other test cases. Because when we caught an assert failure
in the ISR handler, it cannot be guaranteed that all the current
program status would be recovered.

Fixes #34844.

Signed-off-by: Enjia Mai [email protected]

Put the testcase test_catch_assert_in_isr() to execute last, to prevent
it affects other test cases. Because when we caught an assert failure
in the ISR handler, it cannot be guaranteed that all the current
program status would be recovered.

Fixes zephyrproject-rtos#34844.

Signed-off-by: Enjia Mai <[email protected]>
@enjiamai enjiamai requested a review from nashif as a code owner May 5, 2021 03:48
@github-actions github-actions bot added the area: Tests Issues related to a particular existing or missing test label May 5, 2021
@enjiamai enjiamai force-pushed the fix-error-hook-test-affect branch from 8a7efa5 to d39f31a Compare May 5, 2021 03:57
@enjiamai enjiamai changed the title tests: ztest: fixed the possible test case tests: ztest: fix testcase might fail when assertion fail in ISR May 5, 2021
@enjiamai enjiamai requested a review from LeiW000 May 5, 2021 04:31
@nashif nashif added the Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc. label May 5, 2021
@nashif nashif requested a review from galak May 5, 2021 13:25
@zephyrbot zephyrbot added the area: Testsuite Testsuite label May 5, 2021
@enjiamai
Copy link
Collaborator Author

enjiamai commented May 5, 2021

Excuse me, @LeiW000, could you please take look at this PR, it is about to fix CI blocking of some PR, thank you!

@ioannisg ioannisg merged commit f5e3d89 into zephyrproject-rtos:master May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Tests Issues related to a particular existing or missing test area: Testsuite Testsuite Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

qemu_cortex_a53_smp: tests/ztest/error_hook failed after enabling the FPU context switching support
5 participants