summaryrefslogtreecommitdiff
path: root/test/Linker/targettriple.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-03-11 18:25:33 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-03-11 18:25:33 +0000
commit7e3e9aa8e1eb2f138a6e3a6a9d582c3eb6b08810 (patch)
treee090e7f63c71f55a36c88f5980c02317832f8ded /test/Linker/targettriple.ll
parent7532403f2c3c65deeb69727d057a5c9ea805ec24 (diff)
downloadllvm-7e3e9aa8e1eb2f138a6e3a6a9d582c3eb6b08810.tar.gz
llvm-7e3e9aa8e1eb2f138a6e3a6a9d582c3eb6b08810.tar.bz2
llvm-7e3e9aa8e1eb2f138a6e3a6a9d582c3eb6b08810.tar.xz
Don't assume an empty stderr.
GuardMalloc can print info to stderr, causing these tests to fail. Since FileCheck errors on empty inputs, just add a bit of dummy data to make it happy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker/targettriple.ll')
-rw-r--r--test/Linker/targettriple.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Linker/targettriple.ll b/test/Linker/targettriple.ll
index cf64e3f872..71830477bd 100644
--- a/test/Linker/targettriple.ll
+++ b/test/Linker/targettriple.ll
@@ -1,5 +1,6 @@
+; REQUIRES: shell
; RUN: llvm-link %s %S/Inputs/targettriple-a.ll -S -o - 2>%t.a.err | FileCheck %s
-; RUN: cat %t.a.err | not FileCheck %s 2>&1 | FileCheck --check-prefix=WARN-A %s
+; RUN: (echo foo ;cat %t.a.err) | FileCheck --check-prefix=WARN-A %s
; RUN: llvm-link %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.b.err | FileCheck %s
; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s
@@ -8,7 +9,6 @@ target triple = "e"
; CHECK: target triple = "e"
-; this is a hack to check that llvm-link printed no warnings.
-; WARN-A: FileCheck error: '-' is empty.
+; WARN-A-NOT: WARNING
; WARN-B: WARNING: Linking two modules of different target triples: