fxysunshine opened a new pull request, #2205:
URL: https://github.com/apache/nuttx-apps/pull/2205

   ## Summary
   
   This is the continuation of the pull 
https://github.com/apache/nuttx-apps/pull/1500
   
   task_create and task_delete are unavailable in kernel build mode, remove the 
task_create to pthread_create to pass the case. And remove the user_main and 
start the test from main directly in kernel mode. Some tests should be 
re-visited because the intent is to user another task (in this case another 
process) to e.g. receive signals. That will require quite a bit of extra work.
   
   Tests that had to be disabled:
   - waitpid: pthreads don't work with waitpid, but this can be fixed by 
starting a dummy process instead and using waitpid on that (NOT IMPLEMENTED)
   - restart: task_restart() does not work at all with kernel mode so it is 
disabled entirely
   - fpu: make sure the FPU test is not even attempted, because it will cause 
ASSERT() and stop the test
   - vfork: vfork() does not work for some reason in CONFIG_BUILD_KERNEL, there 
is something missing on the kernel side, so just disable the test for now
   
   Tests that should be re-visited:
   - The signal tests, now they signal the process itself while before the 
signal was sent to another task. This will require building the part that 
receives the signal as a separate process
   - waitpid: Like stated above, waitpid does not work for pthreads
   - user_main: It might be a better idea to just call user_main() because the 
"test creating a task works"-part has already been tested; if ostest starts, 
then task starting and creation also works
   
   ## Impact
   Adds basic support for ostest with CONFIG_BUILD_KERNEL=y
   
   ## Testing
   sabre-6quad:knsh
   


-- 
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]

Reply via email to