Fix error handling in LLVMGetBitcodeModuleInContext.
[oota-llvm.git] / test / Linker / datalayout.ll
index 184adf3d9d7abac4ee9b7710fd1044ba98f3f565..cba28776eb5759bb22a31e75f7ec62d25f7a7caa 100644 (file)
@@ -1,11 +1,13 @@
-; RUN: llvm-link %s %S/Inputs/datalayout-a.ll -S -o - 2>%t.a.err | FileCheck %s
-; RUN: cat %t.a.err | count 0
+; REQUIRES: shell
+; RUN: llvm-link %s %S/Inputs/datalayout-a.ll -S -o - 2>%t.a.err
+; RUN: (echo foo ;cat %t.a.err) | FileCheck --check-prefix=WARN-A %s
 
-; RUN: llvm-link %s %S/Inputs/datalayout-b.ll -S -o - 2>%t.b.err | FileCheck %s
+; RUN: llvm-link %s %S/Inputs/datalayout-b.ll -S -o - 2>%t.b.err
 ; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s
 
 target datalayout = "e"
 
-; CHECK: target datalayout = "e"
 
-; WARN-B: WARNING: Linking two modules of different data layouts!
+; WARN-A-NOT: WARNING
+
+; WARN-B: WARNING: Linking two modules of different data layouts: