Closed gbarkadiusz closed 1 day ago
While using the ztest shell with the
ztest run-testcase <testsuite::testcase>
command sometimes it runs all testsuite instead of the particular testcase.
It seems because of memory leak at Ztest shell: after several repeats it can't properly allocate a string for name, so NULL value is treated to run all test cases.
@gbarkadiusz, please try with #75370
Describe the bug While using the ztest shell with the
ztest run-testcase <testsuite::testcase>
command sometimes it runs all testsuite instead of the particular testcase.To Reproduce Steps to reproduce the behavior:
cd zephyrproject/zephyr
source zephyr-env.sh
west build -b qemu_x86 -p -t run tests/kernel/semaphore/semaphore/ -- -DCONFIG_ZTEST_SHELL=y
ztest run-testcase semaphore::test_k_sem_init
multiple times.Expected behavior Running the particular testcase.
Impact Annoyance
Logs and console output
Environment (please complete the following information):