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

   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   At the start of `mqueue_test`, check that `mq_open()` fails with `EINVAL`
   when `mq_msgsize` exceeds `CONFIG_MQ_MAXMSGSIZE`.
   
   depends-on: apache/nuttx#NUTTX_PR
   
   ## Impact
   
   New check only. Without apache/nuttx#NUTTX_PR, builds with
   `CONFIG_DEBUG_ASSERTIONS` hit a kernel assertion in this check; builds
   without assertions already pass it.
   
   ## Testing
   
   Build host: Linux x86_64. `sim:nsh` + `CONFIG_TESTING_OSTEST` +
   `CONFIG_DEBUG_ASSERTIONS`.
   
   Without apache/nuttx#NUTTX_PR:
   
   ```
   mqueue_test: Opening a queue with an oversized message size
   dump_assert_info: Assertion failed (!attr || attr->mq_msgsize <= 
MQ_MAX_BYTES) && pmsgq: at file: mqueue/mq_msgqalloc.c:76 task: ostest process: 
ostest 0x4008cb71
   ```
   
   With it:
   
   ```
   mqueue_test: Opening a queue with an oversized message size
   mqueue_test: Starting receiver
   ...
   ostest_main: Exiting with status 0
   ```


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