Skip to content
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

stdio.h Header file adjustment related #2852

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anjiahao1
Copy link
Contributor

Summary

stdio.h Header file adjustment related

Impact

all used stdio

Testing

sim:citest build

apache/nuttx#14697

@nuttxpr
Copy link

nuttxpr commented Nov 14, 2024

[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 stdio.h and sim:citest, it lacks crucial details.

Here's what's missing:

  • Summary: It needs a clear explanation of why the change to stdio.h is necessary (bug fix, improvement, new feature?). What exactly was changed in the header file, and how does it work? It should also include a related NuttX issue number if one exists.
  • Impact: The PR states "all used stdio" which is too vague. It needs specific YES/NO answers to all the impact questions (user, build, hardware, documentation, security, compatibility). If any answer is YES, a detailed description is required. For example, if the change affects the user, explain how.
  • Testing: While it mentions sim:citest, it lacks specific logs from before and after the change. Simply stating "build" is insufficient. It should show the relevant output demonstrating the problem before the change and the successful result after the change. It also needs details about the build host (OS, CPU, compiler) used for testing. If other targets besides sim:citest were tested, those should be listed as well.

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 <
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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

Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants