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

   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   In the custom work queue test with one worker, keep the worker busy, let
   a second work expire behind it and check that `work_timeleft()` returns
   zero for it. Also check that it returns the remaining ticks, at most the
   delay, for a work that has not expired yet.
   
   depends-on: apache/nuttx#NUTTX_PR
   
   ## Impact
   
   New test only. Without apache/nuttx#NUTTX_PR the expired work gives a
   negative time left and the test asserts.
   
   ## Testing
   
   Build host: Linux x86_64. `sim:nsh` + `CONFIG_TESTING_OSTEST`.
   
   Without apache/nuttx#NUTTX_PR:
   
   ```
   wqueue_test: time left
   wqueue_test: time left of an expired work = -4, expect = 0
   dump_assert_info: Assertion failed left == 0: at file: :0 task: ostest 
process: ostest 0x400a3e93
   ```
   
   With it:
   
   ```
   wqueue_test: time left
   wqueue_test: time left of an expired work = 0, expect = 0
   ...
   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