apps: testing/ostest: Add comprehensive scheduler parameter tests#3393
Closed
hujun260 wants to merge 1 commit intoapache:masterfrom
Closed
apps: testing/ostest: Add comprehensive scheduler parameter tests#3393hujun260 wants to merge 1 commit intoapache:masterfrom
hujun260 wants to merge 1 commit intoapache:masterfrom
Conversation
This commit introduces a comprehensive test suite for scheduler parameter functions in the ostest application. The new sched_params_test validates nxsched_set_param(), nxsched_get_param(), nxsched_set_scheduler(), and nxsched_get_scheduler() functions through multiple test cases. Signed-off-by: hujun5 <[email protected]>
d4005aa to
3a7c868
Compare
|
|
||
| /* Get scheduler policy for main task */ | ||
|
|
||
| ret = nxsched_get_scheduler(main_pid); |
Contributor
There was a problem hiding this comment.
why not call sched_get_xxx, so protect/kernel build can run this test case?
Contributor
|
@hujun260 Thank you for contributing this test! |
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
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.
This PR introduces a comprehensive test suite for NuttX scheduler parameter functions, implemented as part of the ostest application framework.
Summary
This contribution adds a new scheduler parameter testing module to the ostest application. The test suite validates the core scheduler API functions that control task scheduling priority and policy, ensuring their correct operation across various scenarios and edge cases.
TEST
./tools/configure.sh qemu-armv7r:nsh