summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei Huang <lei@ca.ibm.com>2019-07-23 13:10:29 +0000
committerLei Huang <lei@ca.ibm.com>2019-07-23 13:10:29 +0000
commit686cee09450e30bed223ec52368c6e86bd849cd1 (patch)
treef3eac7ff10260ef017d523a5af573b37af7dc287
parent438dfcffe96f6a2bbc8c34331dd6bd3850903165 (diff)
downloadbcm5719-llvm-686cee09450e30bed223ec52368c6e86bd849cd1.tar.gz
bcm5719-llvm-686cee09450e30bed223ec52368c6e86bd849cd1.zip
[NFC][ASAN] Add brackets around not command
Under certain execution conditions, the `not` command binds to the command the output is piped to rather than the command piping the output. In this case, that flips the return code of the FileCheck invocation, causing a failure when FileCheck succeeds. llvm-svn: 366805
-rw-r--r--compiler-rt/test/asan/TestCases/Linux/read_binary_name_regtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/read_binary_name_regtest.c b/compiler-rt/test/asan/TestCases/Linux/read_binary_name_regtest.c
index 41302567752..2cb22fa29cb 100644
--- a/compiler-rt/test/asan/TestCases/Linux/read_binary_name_regtest.c
+++ b/compiler-rt/test/asan/TestCases/Linux/read_binary_name_regtest.c
@@ -2,7 +2,7 @@
// the binary name because of sandbox restrictions.
// This test uses seccomp-BPF to restrict the readlink() system call and makes
// sure ASan is still able to
-// RUN: not ls /usr/include/linux/seccomp.h || ( %clang_asan %s -o %t && not %run %t 2>&1 | FileCheck %s )
+// RUN: not ls /usr/include/linux/seccomp.h || ( %clang_asan %s -o %t && ( not %run %t 2>&1 ) | FileCheck %s )
// REQUIRES: shell
// UNSUPPORTED: android
OpenPOWER on IntegriCloud