Add an explicit target triple to make this test behave as expected on
authorDan Gohman <gohman@apple.com>
Thu, 11 Oct 2007 23:04:36 +0000 (23:04 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 11 Oct 2007 23:04:36 +0000 (23:04 +0000)
non-Apple hosts. And use the count script instead of wc + grep.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42878 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/2007-09-17-ObjcFrameEH.ll

index f406612e42ede15996b5fbab0880c5684a2003d4..4c2e7db759287cdb552b4cd882f3f641dc933457 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 -enable-eh | grep {isNullOrNil].eh"} | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin -enable-eh | grep {isNullOrNil].eh"} | count 2
 
        %struct.NSString = type {  }
        %struct._objc__method_prototype_list = type opaque