summaryrefslogtreecommitdiff
path: root/test/msan
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-06-20 17:57:51 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-06-20 17:57:51 +0000
commit44bd90e3888c279ffe14e2f5c75bcc664423eda5 (patch)
treec19e787779ae1d3cf8de043781a887738fdd75d7 /test/msan
parent25d3c2b672490f04f8b62698a94c3cd45f5f43c8 (diff)
Hide send/sendto/sendmsg interptors under a flag.
A runtime flag to enable checking in send* interceptors. Checking is enabled by default. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@273174 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/msan')
-rw-r--r--test/msan/Linux/sendmsg.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/msan/Linux/sendmsg.cc b/test/msan/Linux/sendmsg.cc
index b73062221..aedb97098 100644
--- a/test/msan/Linux/sendmsg.cc
+++ b/test/msan/Linux/sendmsg.cc
@@ -10,6 +10,13 @@
// RUN: %clangxx_msan %s -DSENDTO -o %t && %run %t 2>&1 | FileCheck %s --check-prefix=NEGATIVE
// RUN: %clangxx_msan %s -DSENDMSG -o %t && %run %t 2>&1 | FileCheck %s --check-prefix=NEGATIVE
+// RUN: %clangxx_msan %s -DSEND -DBUF -o %t && \
+// RUN: MSAN_OPTIONS=intercept_send=0 %run %t 2>&1 | FileCheck %s --check-prefix=NEGATIVE
+// RUN: %clangxx_msan %s -DSENDTO -DBUF -o %t && \
+// RUN: MSAN_OPTIONS=intercept_send=0 %run %t 2>&1 | FileCheck %s --check-prefix=NEGATIVE
+// RUN: %clangxx_msan %s -DSENDMSG -DBUF -o %t && \
+// RUN: MSAN_OPTIONS=intercept_send=0 %run %t 2>&1 | FileCheck %s --check-prefix=NEGATIVE
+
// UNSUPPORTED: android
#include <assert.h>