diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-04 15:22:16 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-04 15:22:16 +0000 |
commit | d029cbbd18689a8110ea47aa33ed3387a7cf3674 (patch) | |
tree | 4dadb09b0547206b2f0534651ef3ee28138ecb9a /test/CodeGenObjC | |
parent | 9d940ed8df9097beb0e71a3070607ce1411bf96e (diff) | |
download | clang-d029cbbd18689a8110ea47aa33ed3387a7cf3674.tar.gz |
Replace 'grep foo | count 0' with 'not grep foo'.
This avoids depending on pipefail not being used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC')
-rw-r--r-- | test/CodeGenObjC/bitfield-ivar-offsets.m | 2 | ||||
-rw-r--r-- | test/CodeGenObjC/blocks-1.m | 4 | ||||
-rw-r--r-- | test/CodeGenObjC/objc2-no-write-barrier.m | 4 | ||||
-rw-r--r-- | test/CodeGenObjC/objc2-write-barrier-5.m | 4 | ||||
-rw-r--r-- | test/CodeGenObjC/protocols-lazy.m | 6 |
5 files changed, 10 insertions, 10 deletions
diff --git a/test/CodeGenObjC/bitfield-ivar-offsets.m b/test/CodeGenObjC/bitfield-ivar-offsets.m index 7a07f27d26..f17d56af19 100644 --- a/test/CodeGenObjC/bitfield-ivar-offsets.m +++ b/test/CodeGenObjC/bitfield-ivar-offsets.m @@ -6,7 +6,7 @@ // RUN: grep -F '@"OBJC_IVAR_$_I0._b3" = global i64 4, section "__DATA, __objc_ivar", align 8' %t // RUN: grep -F '@"OBJC_IVAR_$_I0._y" = global i64 6, section "__DATA, __objc_ivar", align 8' %t // RUN: grep -F '@"OBJC_IVAR_$_I0._b4" = global i64 7, section "__DATA, __objc_ivar", align 8' %t -// RUN: grep -F '@"OBJC_IVAR_$_I0." = global' %t | count 0 +// RUN: not grep -F '@"OBJC_IVAR_$_I0." = global' %t @interface I0 { unsigned _b0:4; diff --git a/test/CodeGenObjC/blocks-1.m b/test/CodeGenObjC/blocks-1.m index 99a11f91e4..0d2c35096a 100644 --- a/test/CodeGenObjC/blocks-1.m +++ b/test/CodeGenObjC/blocks-1.m @@ -4,7 +4,7 @@ // RUN: grep "__destroy_helper_block_" %t | count 4 // RUN: grep "__Block_byref_object_copy_" %t | count 2 // RUN: grep "__Block_byref_object_dispose_" %t | count 2 -// RUN: grep "i32 135)" %t | count 0 +// RUN: not grep "i32 135)" %t // RUN: grep "_Block_object_assign" %t | count 4 // RUN: grep "objc_read_weak" %t | count 2 // RUN: grep "objc_assign_weak" %t | count 3 @@ -14,7 +14,7 @@ // RUN: grep "__destroy_helper_block_" %t | count 4 // RUN: grep "__Block_byref_object_copy_" %t | count 2 // RUN: grep "__Block_byref_object_dispose_" %t | count 2 -// RUN: grep "i32 135)" %t | count 0 +// RUN: not grep "i32 135)" %t // RUN: grep "_Block_object_assign" %t | count 4 // RUN: grep "objc_read_weak" %t | count 2 // RUN: grep "objc_assign_weak" %t | count 3 diff --git a/test/CodeGenObjC/objc2-no-write-barrier.m b/test/CodeGenObjC/objc2-no-write-barrier.m index ece6b9d582..16593f128d 100644 --- a/test/CodeGenObjC/objc2-no-write-barrier.m +++ b/test/CodeGenObjC/objc2-no-write-barrier.m @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s -// RUN: grep 'objc_assign' %t | count 0 +// RUN: not grep 'objc_assign' %t // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s -// RUN: grep 'objc_assign' %t | count 0 +// RUN: not grep 'objc_assign' %t typedef struct { int ival; diff --git a/test/CodeGenObjC/objc2-write-barrier-5.m b/test/CodeGenObjC/objc2-write-barrier-5.m index 65a71a5a1d..44af818a32 100644 --- a/test/CodeGenObjC/objc2-write-barrier-5.m +++ b/test/CodeGenObjC/objc2-write-barrier-5.m @@ -1,8 +1,8 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s -// RUN: grep objc_assign_ivar %t | count 0 +// RUN: not grep objc_assign_ivar %t // RUN: grep objc_assign_strongCast %t | count 8 // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s -// RUN: grep objc_assign_ivar %t | count 0 +// RUN: not grep objc_assign_ivar %t // RUN: grep objc_assign_strongCast %t | count 8 @interface TestUnarchiver diff --git a/test/CodeGenObjC/protocols-lazy.m b/test/CodeGenObjC/protocols-lazy.m index 642f886a08..fba7454b95 100644 --- a/test/CodeGenObjC/protocols-lazy.m +++ b/test/CodeGenObjC/protocols-lazy.m @@ -1,11 +1,11 @@ // RUN: %clang_cc1 -emit-llvm -triple i686-apple-darwin8 -fobjc-runtime=macosx-fragile-10.5 -o %t %s // No object generated -// RUN: grep OBJC_PROTOCOL_P0 %t | count 0 +// RUN: not grep OBJC_PROTOCOL_P0 %t @protocol P0; // No object generated -// RUN: grep OBJC_PROTOCOL_P1 %t | count 0 +// RUN: not grep OBJC_PROTOCOL_P1 %t @protocol P1 -im1; @end // Definition triggered by protocol reference. @@ -16,7 +16,7 @@ void f0() { id x = @protocol(P2); } // Forward definition triggered by protocol reference. // RUN: grep OBJC_PROTOCOL_P3 %t | count 3 -// RUN: grep OBJC_PROTOCOL_INSTANCE_METHODS_P3 %t | count 0 +// RUN: not grep OBJC_PROTOCOL_INSTANCE_METHODS_P3 %t @protocol P3; void f1() { id x = @protocol(P3); } |