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

iotdk: running tests/ztest/error_hook/ failed #31344

Closed
Zhaoningx opened this issue Jan 15, 2021 · 2 comments
Closed

iotdk: running tests/ztest/error_hook/ failed #31344

Zhaoningx opened this issue Jan 15, 2021 · 2 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@Zhaoningx
Copy link
Collaborator

To Reproduce
Steps to reproduce the behavior:
twister -p iotdk --device-testing --device-serial /dev/ttyUSB0 -T tests/ztest/error_hook/
see error
*** Booting Zephyr OS build zephyr-v2.4.0-3009-gfc1b5de4c307 ***
Running test suite error_hook_tests

===================================================================
START - test_catch_assert_fail
ASSERTION FAIL [a != ((void *)0)] @ WEST_TOPDIR/zephyr/tests/ztest/error_hook/src/main.c:41
parameter a should not be NULL!
Caught assert failed
Assert error expected as part of test case.
PASS - test_catch_assert_fail

===================================================================
START - test_catch_fatal_error
case type is 0
b is 1024
FAIL - test_catch_fatal_error

===================================================================
START - test_catch_assert_in_isr
ASSERTION FAIL [a != ((void *)0)] @ WEST_TOPDIR/zephyr/tests/ztest/error_hook/src/main.c:41
parameter a should not be NULL!
Caught assert failed
Assert error expected as part of test case.
PASS - test_catch_assert_in_isr

===================================================================
START - test_catch_z_oops
PASS - test_catch_z_oops

===================================================================
Test suite error_hook_tests failed.

===================================================================
PROJECT EXECUTION FAILED

Environment (please complete the following information):

OS: Fedora33
Toolchain: zephyr-sdk-0.12.0
Commit ID: fc1b5de

@Zhaoningx Zhaoningx added the bug The issue is a bug, or the PR is fixing a bug label Jan 15, 2021
@enjiamai enjiamai self-assigned this Jan 15, 2021
@enjiamai
Copy link
Collaborator

enjiamai commented Jan 15, 2021

The assertion failed due to access a NULL address did not trigger an expected fatal error in iotdk board. Let me see how to modify me test case to adapt that.
This root cause of this issue is the same with #31339

@nashif
Copy link
Member

nashif commented Jan 18, 2021

duplicate of #31339

@nashif nashif closed this as completed Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

3 participants