anjiahao1 opened a new pull request, #4162: URL: https://github.com/apache/nuttx-apps/pull/4162
## Summary Make the suspend test wait for the victim task to start. suspend_test() started the victim task and then slept a fixed time before sending SIGSTOP, assuming the victim had started by then. That assumption can fail on a loaded system. Pass a semaphore to the victim and post it as soon as the task runs, so the test proceeds once the victim is up instead of guessing. ## Impact * Is new feature added? NO - test fix. * Impact on user: NO * Impact on build: NO * Impact on hardware: NO * Impact on documentation: NO * Impact on security: NO * Impact on compatibility: NO ## Testing Build host: Linux x86_64, gcc 13.3. ``` tools/configure.sh -a <apps> sim:nsh # CONFIG_TESTING_OSTEST is enabled in sim:nsh make -j10 ``` The build completes with the modified suspend test compiled in. ## PR verification * [x] This PR introduces only one functional change. * [x] I have updated all required description fields above. * [x] My PR adheres to Contributing Guidelines and Documentation. * [ ] My PR is still work in progress (not ready for review). * [x] My PR is ready for review and can be safely merged into a codebase. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
