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

   
   ## Summary
   
   This change enhances NuttX's test coverage by validating mutex behavior
   in non-standard relocation scenarios, while explicitly noting this
   extends beyond POSIX specifications. The test helps prevent regressions
   
       in edge-case mutex handling.
       * Add test case for mutex move functionality in ostest
       * Verifies correct behavior when a mutex is relocated in memory
       * Introduces new test structure with thread argument passing
       * Includes validation of mutex state across thread operations
       * Related to Rust language discussion: 
https://github.com/rust-lang/rust/pull/138400
   ## Impact
       * New feature added?: YES - Adds new mutex move test scenario
       * Impact on user?: NO - Test suite enhancement only
       * Impact on build?: NO - Existing test infrastructure used
       * Impact on hardware?: NO - Pure software validation
       * Impact on documentation?: NO - No user-facing docs changed
       * Impact on security?: NO - Test-only code
       * Impact on compatibility?: NO - Maintains existing POSIX compliance
   ## Testing
   ostest:
   ```
   user_main: mutex test
   Initializing mutex
   Starting thread 1
   Starting thread 2
                   Thread1 Thread2
           Loops   32      32
           Errors  0       0
   
   Testing moved mutex
   Starting moved mutex thread 1
   Starting moved mutex thread 2
                   Thread1 Thread2
           Moved Loops     32      32
           Moved Errors    0       0
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena     1fc5ee0  1fc5ee0
   ordblks         4        2
   mxordblk  1fbacc0  1fc07e8
   uordblks     ad30     5678
   fordblks  1fbb1b0  1fc0868
   
   ```
   


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