[15/17] pthread: Use pthread_mutexattr_setrobust in tests

Message ID f4732301fa5d993f62dfcf8e6def2362dc967759.1619105191.git.fweimer@redhat.com
State New
Headers show
Series
  • nptl: Move remaining mutex symbols into libpthread
Related show

Commit Message

pthread_mutexattr_setrobust_np is about to be deprecated.
---
 sysdeps/pthread/tst-robust1.c  | 2 +-
 sysdeps/pthread/tst-robust10.c | 2 +-
 sysdeps/pthread/tst-robust7.c  | 2 +-
 sysdeps/pthread/tst-robust8.c  | 2 +-
 sysdeps/pthread/tst-robust9.c  | 4 ++--
 5 files changed, 6 insertions(+), 6 deletions(-)

-- 
2.30.2

Patch

diff --git a/sysdeps/pthread/tst-robust1.c b/sysdeps/pthread/tst-robust1.c
index 6342fcbbf7..4e1943de4f 100644
--- a/sysdeps/pthread/tst-robust1.c
+++ b/sysdeps/pthread/tst-robust1.c
@@ -91,7 +91,7 @@  do_test (void)
       puts ("mutexattr_init failed");
       return 1;
     }
-  if (pthread_mutexattr_setrobust_np (&a, PTHREAD_MUTEX_ROBUST_NP) != 0)
+  if (pthread_mutexattr_setrobust (&a, PTHREAD_MUTEX_ROBUST_NP) != 0)
     {
       puts ("mutexattr_setrobust failed");
       return 1;
diff --git a/sysdeps/pthread/tst-robust10.c b/sysdeps/pthread/tst-robust10.c
index 912376e205..b814806c94 100644
--- a/sysdeps/pthread/tst-robust10.c
+++ b/sysdeps/pthread/tst-robust10.c
@@ -56,7 +56,7 @@  do_test (void)
       puts ("mutexattr_init failed");
       return 0;
     }
-  if (pthread_mutexattr_setrobust_np (&ma, PTHREAD_MUTEX_ROBUST_NP) != 0)
+  if (pthread_mutexattr_setrobust (&ma, PTHREAD_MUTEX_ROBUST_NP) != 0)
     {
       puts ("mutexattr_setrobust failed");
       return 1;
diff --git a/sysdeps/pthread/tst-robust7.c b/sysdeps/pthread/tst-robust7.c
index bcf72916d1..3ea7deb260 100644
--- a/sysdeps/pthread/tst-robust7.c
+++ b/sysdeps/pthread/tst-robust7.c
@@ -89,7 +89,7 @@  do_test (void)
       return 1;
     }
 
-  if (pthread_mutexattr_setrobust_np (&a, PTHREAD_MUTEX_ROBUST_NP) != 0)
+  if (pthread_mutexattr_setrobust (&a, PTHREAD_MUTEX_ROBUST_NP) != 0)
     {
       puts ("mutexattr_setrobust failed");
       return 1;
diff --git a/sysdeps/pthread/tst-robust8.c b/sysdeps/pthread/tst-robust8.c
index 8f135cb516..4c8a20e916 100644
--- a/sysdeps/pthread/tst-robust8.c
+++ b/sysdeps/pthread/tst-robust8.c
@@ -163,7 +163,7 @@  do_test (void)
       puts ("mutexattr_init failed");
       return 0;
     }
-  if (pthread_mutexattr_setrobust_np (&ma, PTHREAD_MUTEX_ROBUST_NP) != 0)
+  if (pthread_mutexattr_setrobust (&ma, PTHREAD_MUTEX_ROBUST_NP) != 0)
     {
       puts ("mutexattr_setrobust failed");
       return 1;
diff --git a/sysdeps/pthread/tst-robust9.c b/sysdeps/pthread/tst-robust9.c
index 532aebc4e9..ca24f24282 100644
--- a/sysdeps/pthread/tst-robust9.c
+++ b/sysdeps/pthread/tst-robust9.c
@@ -40,10 +40,10 @@  do_test (void)
   pthread_mutexattr_t ma;
 
   pthread_mutexattr_init (&ma);
-  err = pthread_mutexattr_setrobust_np (&ma, PTHREAD_MUTEX_ROBUST_NP);
+  err = pthread_mutexattr_setrobust (&ma, PTHREAD_MUTEX_ROBUST_NP);
   if (err)
     {
-      puts ("pthread_mutexattr_setrobust_np");
+      puts ("pthread_mutexattr_setrobust");
       return 1;
     }
 #ifdef ENABLE_PI