about summary refs log tree commit diff
path: root/math/test-matherr.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-03-09 21:07:24 +0100
committerFlorian Weimer <fweimer@redhat.com>2021-03-09 21:07:24 +0100
commit779c404de7910eb417f12767551fad389633c716 (patch)
tree07dd3088ae5192ce91a930a29df2e09e361d3e35 /math/test-matherr.c
parent07db3f552376bce3bcbf785ec67ea03a7f82017a (diff)
downloadglibc-779c404de7910eb417f12767551fad389633c716.tar.gz
glibc-779c404de7910eb417f12767551fad389633c716.tar.xz
glibc-779c404de7910eb417f12767551fad389633c716.zip
math: test-matherr and test-matherr-2 can be regular tests
compat_symbol_reference is now available without tests-internal.
Do not build the test at all on glibc versions that lack the symbols,
to avoid spurious UNSUPPORTED results.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'math/test-matherr.c')
-rw-r--r--math/test-matherr.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/math/test-matherr.c b/math/test-matherr.c
index e68a4a3af1..aed396e420 100644
--- a/math/test-matherr.c
+++ b/math/test-matherr.c
@@ -23,10 +23,8 @@
 #include <math-svid-compat.h>
 #include <shlib-compat.h>
 
-#if TEST_COMPAT (libm, GLIBC_2_0, GLIBC_2_27)
-
-# undef matherr
-# undef _LIB_VERSION
+#undef matherr
+#undef _LIB_VERSION
 compat_symbol_reference (libm, matherr, matherr, GLIBC_2_0);
 compat_symbol_reference (libm, _LIB_VERSION, _LIB_VERSION, GLIBC_2_0);
 
@@ -47,12 +45,5 @@ do_test (void)
   acos (2.0);
   return fail;
 }
-#else
-static int
-do_test (void)
-{
-  return 77;
-}
-#endif
 
 #include <support/test-driver.c>