-
Notifications
You must be signed in to change notification settings - Fork 7.5k
testsuite: ztest: Add validation of zassert strings #89482
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
Conversation
3b9fe44
to
e3aa583
Compare
7a484a0
to
359c2a7
Compare
@nashif is it possible to ignore SonarCloud false negatives? It is reporting a finding in a test but test will fail before that condition may occur. |
359c2a7
to
fa065fc
Compare
fa065fc
to
220b47a
Compare
851a307
to
0a05318
Compare
Add noncallable printf with string used for ztest assert/assume macros to ensure printf-like argument validation at compile time. Signed-off-by: Krzysztof Chruściński <[email protected]>
After introducing compile time argument validation of strings used in zassert macros multiple warnings appear. Fix all of them. Signed-off-by: Krzysztof Chruściński <[email protected]>
Fix wrong parameter used in zassert macros. Signed-off-by: Krzysztof Chruściński <[email protected]>
Fix wrong parameters used in zassert macros. Signed-off-by: Krzysztof Chruściński <[email protected]>
Fix wrong parameter used in zassert macros. Signed-off-by: Krzysztof Chruściński <[email protected]>
Fix wrong parameter used in zassert macros. Signed-off-by: Krzysztof Chruściński <[email protected]>
Fix wrong parameter used in zassert macros. Signed-off-by: Krzysztof Chruściński <[email protected]>
Fix wrong parameter used in zassert macros. Signed-off-by: Krzysztof Chruściński <[email protected]>
Update zscilib with cleanup in zassert macros. Signed-off-by: Krzysztof Chruściński <[email protected]>
0a05318
to
41cbf16
Compare
|
@microbuilder can you re-approve? I had to rebase to resolve conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FS ok
@nordic-krch can you please have a look at https://github.com/zephyrproject-rtos/zephyr/actions/runs/15189028448 and follow up with the remainder of fixes that seem needed? |
Add noncallable printf with string used for ztest assert/assume macros to ensure printf-like argument validation at compile time.