This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new d37b326cb ostest: delete the code that accesses the internal fields of 
mutex
d37b326cb is described below

commit d37b326cb175b1857204059af17b2abe56f4ef06
Author: yinshengkai <[email protected]>
AuthorDate: Sun May 5 16:07:42 2024 +0800

    ostest: delete the code that accesses the internal fields of mutex
    
    Signed-off-by: yinshengkai <[email protected]>
---
 testing/ostest/robust.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/ostest/robust.c b/testing/ostest/robust.c
index 9217a279f..e71c0f2d2 100644
--- a/testing/ostest/robust.c
+++ b/testing/ostest/robust.c
@@ -208,7 +208,7 @@ void robust_test(void)
     {
       sleep(1);
     }
-  while (kill(g_robust_mutex.pid, 0) == 0 || errno != ESRCH);
+  while (kill(waiter, 0) == 0 || errno != ESRCH);
 
   /* Make the mutex consistent and try again.  It should succeed this time. */
 

Reply via email to