forked from OSchip/llvm-project
[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
This commit is contained in:
parent
438dfcffe9
commit
686cee0945
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue