From b40d0a26c40bf48abd5f9914e5b62629d7d4154c Mon Sep 17 00:00:00 2001 From: Packit Service Date: Feb 24 2021 16:01:56 +0000 Subject: Apply patch glibc-rh1659293-2.patch patch_name: glibc-rh1659293-2.patch present_in_specfile: true location_in_specfile: 83 --- diff --git a/ChangeLog b/ChangeLog index ed1a2ff..74e6346 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-03-25 Mike Crowe + + * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to + pthread_rwlock_timedrdlock with calls to + pthread_rwlock_timedwrlock to ensure that the latter is tested + too. Use new function name in diagnostic messages too. + 2019-01-31 Carlos O'Donell Torvald Riegel Rik Prohaska diff --git a/nptl/tst-rwlock14.c b/nptl/tst-rwlock14.c index d6fda87..073e6c9 100644 --- a/nptl/tst-rwlock14.c +++ b/nptl/tst-rwlock14.c @@ -117,15 +117,15 @@ do_test (void) result = 1; } - e = pthread_rwlock_timedrdlock (&r, &ts); + e = pthread_rwlock_timedwrlock (&r, &ts); if (e == 0) { - puts ("second rwlock_timedrdlock did not fail"); + puts ("second rwlock_timedwrlock did not fail"); result = 1; } else if (e != EINVAL) { - puts ("second rwlock_timedrdlock did not return EINVAL"); + puts ("second rwlock_timedwrlock did not return EINVAL"); result = 1; } @@ -145,15 +145,15 @@ do_test (void) result = 1; } - e = pthread_rwlock_timedrdlock (&r, &ts); + e = pthread_rwlock_timedwrlock (&r, &ts); if (e == 0) { - puts ("third rwlock_timedrdlock did not fail"); + puts ("third rwlock_timedwrlock did not fail"); result = 1; } else if (e != EINVAL) { - puts ("third rwlock_timedrdlock did not return EINVAL"); + puts ("third rwlock_timedwrlock did not return EINVAL"); result = 1; }