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

   ## Summary
   Implement task_create and task_delete for use with ostest. The functions are 
unavailable in kernel build mode but overload them here and create a pthread 
worker instead. 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
   icicle: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