-
Notifications
You must be signed in to change notification settings - Fork 681
testing: fix compilation issues with missing header files #3358
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
Open
txy-21
wants to merge
5
commits into
apache:master
Choose a base branch
from
txy-21:testing-header-fixes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
|
@txy-21 please fix: |
Add malloc.h header file to fstest.h to fix missing malloc/free function declarations in filesystem test suites. Signed-off-by: hongfengchen <hongfengchen@xiaomi.com>
Add missing header files in netutils and lsan modules to fix implicit function declarations and improve compilation compatibility. Signed-off-by: hongfengchen <hongfengchen@xiaomi.com>
Add unistd.h and pthread.h for memorystress_main.c, unistd.h for dhm.c and cachetest_main.c, and pthread.h for kv_test_019.c to fix missing declarations. Signed-off-by: hongfengchen <hongfengchen@xiaomi.com>
Add unistd.h header file to drivertest_touchpanel.c to fix missing sleep/usleep function declarations in touchpanel driver tests. Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
8ed1cc3 to
179bcc6
Compare
Fix cast from pointer to integer of different size to ensure proper type conversion and avoid compilation warnings. Signed-off-by: hongfengchen <hongfengchen@xiaomi.com>
179bcc6 to
12bba70
Compare
Contributor
Author
@xiaoxiang781216 Done |
| {"REIN", ftpd_command_rein, FTPD_CMDFLAG_LOGIN}, /* REIN <CRLF> */ | ||
| {"STOU", ftpd_command_stou, FTPD_CMDFLAG_LOGIN}, /* STOU <CRLF> */ | ||
| {"STAT", ftpd_command_stat, FTPD_CMDFLAG_LOGIN}, /* STAT [<SP> <pathname>] <CRLF> */ | ||
| {"ALLO", ftpd_command_stat, FTPD_CMDFLAG_LOGIN}, /* ALLO <SP> <decimal-integer> [<SP> R <SP> <decimal-integer>] <CRLF> */ |
Contributor
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.
this line can't change
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes multiple compilation issues in testing and netutils modules by adding missing POSIX header files. These changes ensure proper compilation across different platforms and build configurations.
Changes
This PR includes 5 commits addressing header file dependencies:
Files Modified
testing/testsuites/kernel/fs/include/fstest.h- Added malloc.hnetutils/codecs/md5.c- Added missing headernetutils/ftpd/ftpd.c- Added missing headersystem/lsan/lsan_main.c- Added missing headertesting/mm/memstress/memorystress_main.c- Added unistd.h and pthread.htesting/drivers/crypto/dhm.c- Added unistd.htesting/mm/cachetest/cachetest_main.c- Added unistd.htesting/drivers/drivertest/drivertest_touchpanel.c- Added unistd.hnetutils/rexecd/rexecd.c- Fixed type cast issueImpact
Testing
Test Environment
Test Steps
Test Results