-
Notifications
You must be signed in to change notification settings - Fork 665
testing/cmocka: stdio.h Header file adjustment related #2852
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
[Experimental Bot, please feedback here] No, this PR does not fully meet the NuttX requirements. While it provides a link to the PR and mentions Here's what's missing:
The provided link to the PR is helpful, but the PR description itself needs to be self-contained and meet all the listed requirements. Relying on reviewers to click through to another page to gather essential information is not good practice. |
Error: cmocka/src/cmocka.c:2568:9: error: implicit declaration of function 'ftruncate'; did you mean 'strncat'? [-Werror=implicit-function-declaration] 2568 | ftruncate(fileno(fp), ftell(fp)); | ^~~~~~~~~ | strncat Signed-off-by: anjiahao <anjiahao@xiaomi.com>
@@ -43,6 +43,8 @@ if(CONFIG_TESTING_CMOCKA) | |||
${CMAKE_CURRENT_LIST_DIR}/0005-cmocka-cmocka_private-fix-warning-in-cmocka_private.patch | |||
&& patch -p0 -d ${CMAKE_CURRENT_LIST_DIR}/cmocka < | |||
${CMAKE_CURRENT_LIST_DIR}/0006-fix-linux-risc-v-compile-error-list_initialize.patch | |||
&& patch -p0 -d ${CMAKE_CURRENT_LIST_DIR}/cmocka < |
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.
but no compiler error happen in cmocka:
https://github.com/apache/nuttx/actions/runs/11834392207/job/32975068050?pr=14697
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.
i test in linux, ftruncate is need include <unistd.h>. ftruncate is not use in cmocka mainline
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.
let's update to cmocka new version instead
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.
Thank you @anjiahao1 :-)
- Please update git commit topic and message.
- Should this PR go in pair with apache/nuttx#14697 or is it independent update?
Summary
testing/cmocka
add patch to fix missing headers.Impact
Testing
sim:citest build