Skip to content

tests/tickless/tickless_concept: Assertions when running code coverage on qemu_x86 #15151

@cinlyooi-intel

Description

@cinlyooi-intel

To Reproduce
Steps to reproduce the behavior:

# To generate the errors
scripts/sanitycheck --coverage 
   --coverage-platform mps2_an385 -p mps2_an385 
   --coverage-platform qemu_x86 -p qemu_x86  
   --coverage-platform qemu_x86_nommu  -p qemu_x86_nommu -
   -gcov-tool /opt/zephyr-sdk-0.10.0/i586-zephyr-elf/bin/i586-zephyr-elf-gcov \
   -T tests/kernel -T tests/subsys/logging | tee output.log

# the file to open is
# sanity-out/qemu_x86/tests/kernel/tickless/tickless_concept/kernel.tickless/handler.log

Screenshots or console output

�c�[?7l�[2J�[0mSeaBIOS (version rel-1.12.0-0-ga698c8995f-prebuilt.qemu.org)
Booting from ROM..***** Booting Zephyr OS v1.14.0-rc3-76-g0734b4fcaaea *****
Running test suite tickless_concept
===================================================================
starting test - test_tickless_sysclock
time 20, 230
time 240, 440
PASS - test_tickless_sysclock
===================================================================
starting test - test_tickless_slice
elapsed slice 110, expected: <100, 110>
elapsed slice 100, expected: <100, 110>
elapsed slice 120, expected: <100, 110>

    Assertion failed at /home/cinlyooi/tests/zephyrproject/zephyr/tests/kernel/tickless/tickless_concept/src/main.c:59: thread_tslice: t <= SLICE_SIZE_LIMIT is false

elapsed slice 10, expected: <100, 110>

    Assertion failed at /home/cinlyooi/tests/zephyrproject/zephyr/tests/kernel/tickless/tickless_concept/src/main.c:57: thread_tslice: t >= SLICE_SIZE is false

FAIL - test_tickless_slice
===================================================================
Test suite tickless_concept failed.
===================================================================
PROJECT EXECUTION FAILED

GCOV_COVERAGE_DUMP_START
GCOV_COVERAGE_DUMP_END

Environment (please complete the following information):

  • OS: fedora29
  • Toolchain zephyr
  • Commit SHA or Version used: 0734b4f

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug, or the PR is fixing a bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions