summaryrefslogtreecommitdiff
path: root/test/sanitizer_common
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2018-03-17 00:31:41 +0000
committerVitaly Buka <vitalybuka@google.com>2018-03-17 00:31:41 +0000
commitced3f2bc118b52e25c2da715cbf43315d599ceca (patch)
treee41b9ccbc5064e381010e0de0286d78aae5b6bbb /test/sanitizer_common
parentd7241395e6a8ddb73618dca61db1495c227354b8 (diff)
Revert "Mmap interceptor new option, Write Exec runtime detector"
Breaks Android bot. This reverts commit r327747. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@327762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/sanitizer_common')
-rw-r--r--test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp b/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp
deleted file mode 100644
index 2758322c5..000000000
--- a/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-// RUN: %clangxx %s -o %t
-// RUN: %env_tool_opts=detect_write_exec=1 %run %t 2>&1 | FileCheck %s
-// ubsan and lsan do not install mmap interceptors
-// UNSUPPORTED: ubsan, lsan
-
-#include <sys/mman.h>
-
-int main(int argc, char **argv) {
- char *p = (char *)mmap(0, 1024, PROT_READ | PROT_WRITE | PROT_EXEC,
- MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
- // CHECK: WARNING: {{.*}}Sanitizer: writable-executable page usage
-}