Use "ignore" rather than grep tricks.
authorDuncan Sands <baldrick@free.fr>
Fri, 15 Jun 2007 17:13:53 +0000 (17:13 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 15 Jun 2007 17:13:53 +0000 (17:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37592 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2007-05-23-TryFinally.cpp

index 021d528a0cedd43a3d8b0b93f6f9010615caab81..c99ad6b834a9fd857cddd02e30e4491e6cbf2c9f 100644 (file)
@@ -1,4 +1,5 @@
-// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | grep -c {handle\\|_Unwind_Resume} | grep {\[14\]}
+// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | ignore grep _Unwind_Resume | \
+// RUN:   wc -l | grep {\[03\]}
 
 struct One { };
 struct Two { };