llvm.org GIT mirror llvm / 7e3e9aa
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 Rafael Espindola 6 years ago
2 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
0 ; REQUIRES: shell
1 ; RUN: llvm-link %s %S/Inputs/datalayout-a.ll -S -o - 2>%t.a.err | FileCheck %s
1 ; RUN: cat %t.a.err | not FileCheck %s 2>&1 | FileCheck --check-prefix=WARN-A %s
2 ; RUN: (echo foo ;cat %t.a.err) | FileCheck --check-prefix=WARN-A %s
23
34 ; RUN: llvm-link %s %S/Inputs/datalayout-b.ll -S -o - 2>%t.b.err | FileCheck %s
45 ; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s
78
89 ; CHECK: target datalayout = "e"
910
10 ; this is a hack to check that llvm-link printed no warnings.
11 ; WARN-A: FileCheck error: '-' is empty.
11 ; WARN-A-NOT: WARNING
1212
1313 ; WARN-B: WARNING: Linking two modules of different data layouts:
0 ; REQUIRES: shell
1 ; RUN: llvm-link %s %S/Inputs/targettriple-a.ll -S -o - 2>%t.a.err | FileCheck %s
1 ; RUN: cat %t.a.err | not FileCheck %s 2>&1 | FileCheck --check-prefix=WARN-A %s
2 ; RUN: (echo foo ;cat %t.a.err) | FileCheck --check-prefix=WARN-A %s
23
34 ; RUN: llvm-link %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.b.err | FileCheck %s
45 ; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s
78
89 ; CHECK: target triple = "e"
910
10 ; this is a hack to check that llvm-link printed no warnings.
11 ; WARN-A: FileCheck error: '-' is empty.
11 ; WARN-A-NOT: WARNING
1212
1313 ; WARN-B: WARNING: Linking two modules of different target triples: