-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
ztest: tracing backend works incorrectly when new ZTEST enabled. #49263
Comments
@Zhaoningx you need to provide more details and how this can be reproduced, for example, you could provice a link to a branch with the modified test and the backend so one can examine it. |
Hi @nashif, I used the old ZTEST suite, and insert a printk function to backend API, the log as below:
And migrate to new ZTEST API, the log as below:
As you can see, when I migrated testcases to new ZTEST API, when the testsuite is running, the backend log printk("-=-=-=-=backend is running-=-=-=-=") is stopped. I don't know what's wrong with this, so issue a bug here. |
@Zhaoningx could you please continue working with @mengxianglinx @enjiamai on it? |
this is an issue you found while converting a test to the new API, it does not exist in the current code, is this really a bug? This could be a bug in the way you are trying to convert? |
Do not see how this is tracing related. |
When convert test to new API, test cases run in different order than before, that exposes bug in tracing_backends_output(). |
Describe the bug
I created a dummy tracing backend to get and verify the data to verify the tracing functionality. The code as below:
And when I migrated the test cases to the new ZTEST API, I find that when the test suite ZTEST_SUITE is running, the dummy tracing backend will don't get any output anymore. So test cases will fail to check flags. More details please refer to the directory tests/subsys/tracing/tracing_api/
Impact
testcases failed
Environment (please complete the following information):
OS: linux
Toolchain Zephyr SDK 14.2
The text was updated successfully, but these errors were encountered: