From 05b38d64b1a3451d1fa10794b01dbc9bebe6a398 Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Tue, 5 Sep 2017 12:24:00 -0700 Subject: Fix tests that are testing obsoleted functionality * include/shlib-compat.h (TEST_COMPAT): New Macro. * malloc/tst-mallocstate.c: Convert from test-skeleton to test-driver. Ifdef code using TEST_COMPAT macro. * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro. * math/test-matherr.c: Likewise. --- include/shlib-compat.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/shlib-compat.h') diff --git a/include/shlib-compat.h b/include/shlib-compat.h index 41eb362f1d..d872afcbab 100644 --- a/include/shlib-compat.h +++ b/include/shlib-compat.h @@ -97,4 +97,14 @@ compat_symbol (libc, name, aliasname, version); # endif +/* The TEST_COMPAT macro acts just like the SHLIB_COMPAT macro except + that it does not check IS_IN. It is used by tests that are testing + functionality that is only available in specific GLIBC versions. */ + +# define TEST_COMPAT(lib, introduced, obsoleted) \ + _TEST_COMPAT (lib, introduced, obsoleted) +# define _TEST_COMPAT(lib, introduced, obsoleted) \ + (!(ABI_##lib##_##obsoleted - 0) \ + || ((ABI_##lib##_##introduced - 0) < (ABI_##lib##_##obsoleted - 0))) + #endif /* shlib-compat.h */ -- cgit v1.2.3