about summary refs log tree commit diff
path: root/nptl/test-condattr-printers.c
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@redhat.com>2016-12-23 13:46:56 -0500
committerCarlos O'Donell <carlos@redhat.com>2016-12-23 13:46:56 -0500
commit81e0662e5f2c342ffa413826b7b100d56677b613 (patch)
tree35dd21027a51c1714a57fb479809c0f36a071b68 /nptl/test-condattr-printers.c
parentb0a679f4fd5363809a972b697e8a0b1fc66fcbb1 (diff)
downloadglibc-81e0662e5f2c342ffa413826b7b100d56677b613.tar.gz
glibc-81e0662e5f2c342ffa413826b7b100d56677b613.tar.xz
glibc-81e0662e5f2c342ffa413826b7b100d56677b613.zip
Fix failing pretty printer tests when CPPFLAGS has optimizations.
The value of CPPFLAGS provided by the environment may have optimizations
that interfere with the pretty printer test requirements. To override
such optimizations the pretty printer tests must also specify CPPFLAGS.
The existing pretty printer tests are fixed and the
README.pretty-printers is updated with the new requirement.
Diffstat (limited to 'nptl/test-condattr-printers.c')
-rw-r--r--nptl/test-condattr-printers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nptl/test-condattr-printers.c b/nptl/test-condattr-printers.c
index 4db4098827..2815d02101 100644
--- a/nptl/test-condattr-printers.c
+++ b/nptl/test-condattr-printers.c
@@ -66,6 +66,7 @@ condvar_reinit (pthread_cond_t *condvar, const pthread_condattr_t *attr)
 }
 
 /* Tests setting the clock ID attribute.  */
+__attribute__ ((noinline))
 static int
 test_setclock (pthread_cond_t *condvar, pthread_condattr_t *attr)
 {