about summary refs log tree commit diff
path: root/math/Makefile
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/Makefile
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/Makefile')
-rw-r--r--math/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/math/Makefile b/math/Makefile
index 2978abf526..98b26e4f71 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -249,7 +249,11 @@ tests-static = test-fpucw-static test-fpucw-ieee-static \
 	       test-signgam-uchar-static test-signgam-uchar-init-static \
 	       test-signgam-uint-static test-signgam-uint-init-static \
 	       test-signgam-ullong-static test-signgam-ullong-init-static
-tests-internal = test-matherr test-matherr-2
+
+# The tested symbols matherr, _LIB_VERSION have been removed in glibc 2.27.
+ifeq ($(have-GLIBC_2.26)$(build-shared),yesyes)
+tests += test-matherr test-matherr-2
+endif
 
 # These tests use internal (unexported) GMP functions and are linked
 # statically to obtain access to these functions.