]> sourceware.org Git - glibc.git/commitdiff
Fix nptl/tst-mutex5.c: Do not skip tests if elision is enabled.
authorTorvald Riegel <triegel@redhat.com>
Mon, 15 Dec 2014 21:09:55 +0000 (22:09 +0100)
committerTorvald Riegel <triegel@redhat.com>
Mon, 15 Dec 2014 21:14:32 +0000 (22:14 +0100)
ChangeLog
nptl/tst-mutex5.c

index 50afebc3c42691cd17a7a23424342f4a60656f7c..07aca34dd07e582fb946e634498afc719bfd3d4e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-12-15  Torvald Riegel  <triegel@redhat.com>
+
+       * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
+
 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
 
        * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
index a82927274190adee64fe66335d6b0c145b6fd70b..6988840987132ea077c169d3e2940867c29edf84 100644 (file)
@@ -86,8 +86,6 @@ do_test (void)
       return 1;
     }
 
-  /* Elided locks do not time out.  */
-#ifndef ENABLE_LOCK_ELISION
   if (pthread_mutex_trylock (&m) == 0)
     {
       puts ("mutex_trylock succeeded");
@@ -183,7 +181,6 @@ do_test (void)
       puts ("3rd timedlock didn't return right away");
       return 1;
     }
-#endif
 
   if (pthread_mutex_unlock (&m) != 0)
     {
This page took 0.122583 seconds and 5 git commands to generate.