diff options
author | Vitaly Buka <vitalybuka@google.com> | 2021-11-14 16:21:07 -0800 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2021-12-21 16:29:58 -0800 |
commit | d9f927f2cfe8d96cf68c71589d69e777b373ae73 (patch) | |
tree | 185035ed485c52f4beb42922c194b62c2b443f15 | |
parent | abc0cf92bb14e1cf5a7f682dc5d3179e168ac145 (diff) | |
download | llvm-d9f927f2cfe8d96cf68c71589d69e777b373ae73.zip llvm-d9f927f2cfe8d96cf68c71589d69e777b373ae73.tar.gz llvm-d9f927f2cfe8d96cf68c71589d69e777b373ae73.tar.bz2 |
[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.cpp | 5 |
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 0ffb346..5ea7fb8 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 |