Skip to content

Commit d9f927f

Browse files
vitalybukatstellar
authored andcommitted
[sanitizer] Disable test incompartible with recert GLIBC
(rebased for 13.0.1)
1 parent abc0cf9 commit d9f927f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler-rt/test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88

99
// getauxval() used instead of sysconf() in GetPageSize() is defined starting
1010
// glbc version 2.16.
11-
#if __GLIBC_PREREQ(2, 16)
11+
// Does not work with 2.31 and above at it calls sysconf for SIGSTKSZ.
12+
#if __GLIBC_PREREQ(2, 16) && !__GLIBC_PREREQ(2, 31)
1213
extern "C" long sysconf(int name) {
1314
fprintf(stderr, "sysconf wrapper called\n");
1415
return 0;
1516
}
16-
#endif // defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 16)
17+
#endif
1718

1819
int main() {
1920
// All we need to check is that the sysconf() interceptor defined above was

0 commit comments

Comments
 (0)