diff options
author | Vitaly Buka <vitalybuka@google.com> | 2017-03-21 06:55:32 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2017-03-21 06:55:32 +0000 |
commit | afa3b5b092dd73ad360916cd05113cb6e07c51c5 (patch) | |
tree | aad6c96d53444edbfbe75ccc8942b68ecd79dd3a /test/sanitizer_common | |
parent | 43d584fba6ecb04daa4851e8529a90c8b79fc538 (diff) |
Revert "Bypass potential libc's sysconf wrappers for sysconf(_SC_PAGESIZE) call"
Bot can't find <sys/auxv.h>
This reverts commit r298305.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@298343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/sanitizer_common')
-rw-r--r-- | test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cc b/test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cc deleted file mode 100644 index 97b6132e2..000000000 --- a/test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cc +++ /dev/null @@ -1,21 +0,0 @@ -// RUN: %clangxx -O2 %s -o %t && %run %t 2>&1 | FileCheck %s - -#include <stdio.h> - -extern "C" long sysconf(int name) { - fprintf(stderr, "sysconf wrapper called\n"); - return 0; -} - -int main() { - // All we need to check is that the sysconf() interceptor defined above was - // not called. Should it get called, it will crash right there, any - // instrumented code executed before sanitizer init is finished will crash - // accessing non-initialized sanitizer internals. Even if it will not crash - // in some configuration, it should never be called anyway. - fprintf(stderr, "Passed\n"); - // CHECK-NOT: sysconf wrapper called - // CHECK: Passed - // CHECK-NOT: sysconf wrapper called - return 0; -} |