summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2021-11-14 16:21:07 -0800
committerTom Stellard <tstellar@redhat.com>2021-12-21 16:29:58 -0800
commitd9f927f2cfe8d96cf68c71589d69e777b373ae73 (patch)
tree185035ed485c52f4beb42922c194b62c2b443f15
parentabc0cf92bb14e1cf5a7f682dc5d3179e168ac145 (diff)
downloadllvm-d9f927f2cfe8d96cf68c71589d69e777b373ae73.tar.gz
[sanitizer] Disable test incompartible with recert GLIBC
(rebased for 13.0.1)
-rw-r--r--compiler-rt/test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cpp
index 0ffb346ebb45..5ea7fb872157 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cpp
@@ -8,12 +8,13 @@
// getauxval() used instead of sysconf() in GetPageSize() is defined starting
// glbc version 2.16.
-#if __GLIBC_PREREQ(2, 16)
+// Does not work with 2.31 and above at it calls sysconf for SIGSTKSZ.
+#if __GLIBC_PREREQ(2, 16) && !__GLIBC_PREREQ(2, 31)
extern "C" long sysconf(int name) {
fprintf(stderr, "sysconf wrapper called\n");
return 0;
}
-#endif // defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 16)
+#endif
int main() {
// All we need to check is that the sysconf() interceptor defined above was