Skip to content

tests/kernel/common: test_bitfield: test_bitfield: (b1 not equal to (1 << bit)) #15019

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

Closed
cinlyooi-intel opened this issue Mar 29, 2019 · 1 comment
Labels
area: Kernel area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug

Comments

@cinlyooi-intel
Copy link
Contributor

Describe the bug
Assertion occured at test_bitfield(), i.e.

test_bitfield: (b1 not equal to (1 << bit))

Observed for both test cases kernel.common and kernel.common.misra

To Reproduce
Steps to reproduce the behavior:

  1. mkdir build; cd build
  2. cmake -DBOARD=altera_max10
  3. make
  4. make run

Screenshots or console output

***** Booting Zephyr OS v1.14.0-rc3-2-gf5a4a698ec17 (delayed boot 3000ms) *****
Running test suite common
===================================================================
starting test - test_verify_bootdelay
PASS - test_verify_bootdelay
===================================================================
starting test - test_irq_offload
PASS - test_irq_offload
===================================================================
starting test - test_byteorder_memcpy_swap
PASS - test_byteorder_memcpy_swap
===================================================================
starting test - test_byteorder_mem_swap
PASS - test_byteorder_mem_swap
===================================================================
starting test - test_atomic
PASS - test_atomic
===================================================================
starting test - test_bitfield
twiddling bits....

    Assertion failed at /home/cinlyooi/tests/zephyr.git/tests/kernel/common/src/bitfield.c:43: test_bitfield: (b1 not equal to (1 << bit))
sys_set_bit failed on bit 0

FAIL - test_bitfield
===================================================================
starting test - test_printk
22 113 10000 32768 40000 22
p 112 -10000 -32768 -40000 -22
0xcafebabe 0x0000beef
0x1 0x01 0x0001 0x00000001 0x0000000000000001
0x1 0x 1 0x   1 0x       1
42 42 0042 00000042
-42 -42 -042 -0000042
42 42   42       42
42 42 0042 00000042
255     42    abcdef  0x0000002a      42
ERR -1 ERR ffffffffffffffff
PASS - test_printk
===================================================================
starting test - test_slist
PASS - test_slist
===================================================================
starting test - test_dlist
PASS - test_dlist
===================================================================
starting test - test_intmath
PASS - test_intmath
===================================================================
starting test - test_timeout_order
thread 0 synced on timer 0
thread 1 synced on timer 1
thread 2 synced on timer 2
PASS - test_timeout_order
===================================================================
starting test - test_clock_uptime
PASS - test_clock_uptime
===================================================================
starting test - test_clock_cycle
PASS - test_clock_cycle
===================================================================
starting test - test_version
PASS - test_version
===================================================================
starting test - test_multilib
PASS - test_multilib
===================================================================
starting test - test_thread_context
PASS - test_thread_context
===================================================================
Test suite common failed.
===================================================================

Environment (please complete the following information):

  • OS: fedora29
  • Toolchain: zephyr
  • Commit SHA or Version used: f5a4a698ec17e6a78299966a1a3fe73c3404b78d
@cinlyooi-intel cinlyooi-intel added the bug The issue is a bug, or the PR is fixing a bug label Mar 29, 2019
@aescolar aescolar added area: Kernel area: Tests Issues related to a particular existing or missing test labels Mar 29, 2019
@nashif
Copy link
Member

nashif commented Mar 29, 2019

duplicate of #7909

@nashif nashif closed this as completed Mar 29, 2019
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 bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

3 participants