Coverage reporting hangs for C++ tests on X86 qemu #20729
Labels
area: Test Framework
Issues related not to a particular test, but to the framework instead
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Stale
Describe the bug
When C++ related tests are executed with coverage reporting on X86 Qemu, Qemu will end up in endless loop when dumping coverage results to UART.
To Reproduce
Steps to reproduce the behavior:
platform_exclude: qemu_x86_coverage
fromtests/application_development/libcxx/testcase.yaml
sanitycheck -N -p qemu_x86_coverage -s tests/application_development/libcxx/misc.app_dev.libcxx
Expected behavior
C++ tests can run with coverage enabled on Qemu X86 without hanging.
Impact
No coverage reports can be generated for C++ test cases
Environment (please complete the following information):
Additional context
Quick look with gdb reveals that the while loop in
gcov_coverage_dump
is an endless loopzephyr/subsys/testsuite/coverage/coverage.c
Line 223 in 6d9af83
The text was updated successfully, but these errors were encountered: