[llvm-branch-commits] [compiler-rt] d9f927f - [sanitizer] Disable test incompartible with recert GLIBC
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Dec 21 16:30:36 PST 2021
Author: Vitaly Buka
Date: 2021-12-21T16:29:58-08:00
New Revision: d9f927f2cfe8d96cf68c71589d69e777b373ae73
URL: https://github.com/llvm/llvm-project/commit/d9f927f2cfe8d96cf68c71589d69e777b373ae73
DIFF: https://github.com/llvm/llvm-project/commit/d9f927f2cfe8d96cf68c71589d69e777b373ae73.diff
LOG: [sanitizer] Disable test incompartible with recert GLIBC
(rebased for 13.0.1)
Added:
Modified:
compiler-rt/test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cpp
Removed:
################################################################################
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 0ffb346ebb450..5ea7fb872157f 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
More information about the llvm-branch-commits
mailing list