crafcat7 opened a new pull request, #15552:
URL: https://github.com/apache/nuttx/pull/15552

   ## Summary
     This PR comes from the discussion of 
https://github.com/apache/nuttx/pull/15535#event-15924592365.
     A common conversion interface `host_errno_convert` is provided in 
`arch/sim/posix`. Subsequent contributors with needs can add host to nuttx 
errno conversion here
   
   ## Impact
     Modified all places where errno is returned in `arch/sim/posix` to be 
converted via `host_errno_convert` before returning (current implementation is 
to return directly)
   
   ## Testing
   Build Host(s): Linux x86
   Target(s): sim/nsh
   ```
   nsh> cmocka_fs_test
   [==========] nuttx_fs_test_suites: Running 41 test(s).
   [ RUN      ] test_nuttx_fs_creat01
   [       OK ] test_nuttx_fs_creat01
   [ RUN      ] test_nuttx_fs_dup01
   [       OK ] test_nuttx_fs_dup01
   [ RUN      ] test_nuttx_fs_fcntl01
   [       OK ] test_nuttx_fs_fcntl01
   [ RUN      ] test_nuttx_fs_fstat01
   [       OK ] test_nuttx_fs_fstat01
   [ RUN      ] test_nuttx_fs_fstatfs01
   [       OK ] test_nuttx_fs_fstatfs01
   [ RUN      ] test_nuttx_fs_fsync01
   [       OK ] test_nuttx_fs_fsync01
   [ RUN      ] test_nuttx_fs_fsync02
   the fbsize = 4096,buffer size=4096
   [       OK ] test_nuttx_fs_fsync02
   [ RUN      ] test_nuttx_fs_getfilep01
   [       OK ] test_nuttx_fs_getfilep01
   [ RUN      ] test_nuttx_fs_mkdir01
   [       OK ] test_nuttx_fs_mkdir01
   [ RUN      ] test_nuttx_fs_open01
   [       OK ] test_nuttx_fs_open01
   [ RUN      ] test_nuttx_fs_open02
   [       OK ] test_nuttx_fs_open02
   [ RUN      ] test_nuttx_fs_opendir01
   [       OK ] test_nuttx_fs_opendir01
   [ RUN      ] test_nuttx_fs_opendir02
   [       OK ] test_nuttx_fs_opendir02
   [ RUN      ] test_nuttx_fs_pread01
   [       OK ] test_nuttx_fs_pread01
   [ RUN      ] test_nuttx_fs_pwrite01
   [       OK ] test_nuttx_fs_pwrite01
   [ RUN      ] test_nuttx_fs_readdir01
   [       OK ] test_nuttx_fs_readdir01
   [ RUN      ] test_nuttx_fs_readlink01
   [       OK ] test_nuttx_fs_readlink01
   [ RUN      ] test_nuttx_fs_rename01
   [       OK ] test_nuttx_fs_rename01
   [ RUN      ] test_nuttx_fs_rename02
   [       OK ] test_nuttx_fs_rename02
   [ RUN      ] test_nuttx_fs_rewinddir01
   [       OK ] test_nuttx_fs_rewinddir01
   [ RUN      ] test_nuttx_fs_rmdir01
   [       OK ] test_nuttx_fs_rmdir01
   [ RUN      ] test_nuttx_fs_rmdir02
   [       OK ] test_nuttx_fs_rmdir02
   [ RUN      ] test_nuttx_fs_rmdir03
   [       OK ] test_nuttx_fs_rmdir03
   [ RUN      ] test_nuttx_fs_seek01
   [       OK ] test_nuttx_fs_seek01
   [ RUN      ] test_nuttx_fs_seek02
   [       OK ] test_nuttx_fs_seek02
   [ RUN      ] test_nuttx_fs_statfs01
   [       OK ] test_nuttx_fs_statfs01
   [ RUN      ] test_nuttx_fs_symlink01
   [       OK ] test_nuttx_fs_symlink01
   [ RUN      ] test_nuttx_fs_truncate01
   [       OK ] test_nuttx_fs_truncate01
   [ RUN      ] test_nuttx_fs_unlink01
   [       OK ] test_nuttx_fs_unlink01
   [ RUN      ] test_nuttx_fs_write01
   [       OK ] test_nuttx_fs_write01
   [ RUN      ] test_nuttx_fs_write02
   [       OK ] test_nuttx_fs_write02
   [ RUN      ] test_nuttx_fs_write03
   [       OK ] test_nuttx_fs_write03
   [ RUN      ] test_nuttx_fs_append01
   [       OK ] test_nuttx_fs_append01
   [ RUN      ] test_nuttx_fs_sendfile01
   [       OK ] test_nuttx_fs_sendfile01
   [ RUN      ] test_nuttx_fs_sendfile02
   [       OK ] test_nuttx_fs_sendfile02
   [ RUN      ] test_nuttx_fs_stream01
   [       OK ] test_nuttx_fs_stream01
   [ RUN      ] test_nuttx_fs_stream02
   [       OK ] test_nuttx_fs_stream02
   [ RUN      ] test_nuttx_fs_stream03
   [       OK ] test_nuttx_fs_stream03
   [ RUN      ] test_nuttx_fs_stream04
   [       OK ] test_nuttx_fs_stream04
   [ RUN      ] test_nuttx_fs_eventfd
   [       OK ] test_nuttx_fs_eventfd
   [ RUN      ] test_nuttx_fs_poll01
   [       OK ] test_nuttx_fs_poll01
   [==========] nuttx_fs_test_suites: 41 test(s) run.
   [  PASSED  ] 41 test(s).
   ```
   


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to