forked from OSchip/llvm-project
Fix lld wasm tests after r356610
Apparently stdout is not opened in binary mode, so the executable gets corrupted when piping to obj2yaml. llvm-svn: 356694
This commit is contained in:
parent
f0d7d87a47
commit
05ea3a6be3
|
@ -1,10 +1,12 @@
|
|||
# RUN: yaml2obj %s -o %t1.o
|
||||
|
||||
# RUN: yaml2obj %S/Inputs/disallow-feature-foo.yaml -o %t.disallowed.o
|
||||
# RUN: wasm-ld --no-entry -o - %t1.o %t.disallowed.o | obj2yaml | FileCheck %s --check-prefix DISALLOWED
|
||||
# RUN: wasm-ld --no-entry -o %t.disallowed.exe %t1.o %t.disallowed.o
|
||||
# RUN: obj2yaml < %t.disallowed.exe | FileCheck %s --check-prefix DISALLOWED
|
||||
|
||||
# RUN: yaml2obj %S/Inputs/no-feature-foo.yaml -o %t.none.o
|
||||
# RUN: wasm-ld --no-entry -o - %t1.o %t.none.o | obj2yaml | FileCheck %s --check-prefix NONE
|
||||
# RUN: wasm-ld --no-entry -o %t.none.exe %t1.o %t.none.o
|
||||
# RUN: obj2yaml < %t.none.exe | FileCheck %s --check-prefix NONE
|
||||
|
||||
# Check that the following combinations of feature linkage policies
|
||||
# give the expected results:
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
# RUN: yaml2obj %s -o %t1.o
|
||||
|
||||
# RUN: yaml2obj %S/Inputs/require-feature-foo.yaml -o %t.required.o
|
||||
# RUN: wasm-ld --no-entry -o - %t1.o %t.required.o | obj2yaml | FileCheck %s --check-prefix REQUIRED
|
||||
# RUN: wasm-ld --no-entry -o %t.required.exe %t1.o %t.required.o
|
||||
# RUN: obj2yaml < %t.required.exe | FileCheck %s --check-prefix REQUIRED
|
||||
|
||||
# RUN: yaml2obj %S/Inputs/disallow-feature-foo.yaml -o %t.disallowed.o
|
||||
# RUN: not wasm-ld --no-entry -o - %t1.o %t.disallowed.o 2>&1 | FileCheck %s --check-prefix DISALLOWED
|
||||
# RUN: not wasm-ld --no-entry -o /dev/null %t1.o %t.disallowed.o 2>&1 | FileCheck %s --check-prefix DISALLOWED
|
||||
|
||||
# RUN: yaml2obj %S/Inputs/no-feature-foo.yaml -o %t.none.o
|
||||
# RUN: not wasm-ld --no-entry -o - %t1.o %t.none.o 2>&1 | FileCheck %s --check-prefix NONE
|
||||
# RUN: not wasm-ld --no-entry -o /dev/null %t1.o %t.none.o 2>&1 | FileCheck %s --check-prefix NONE
|
||||
|
||||
# Check that the following combinations of feature linkage policies
|
||||
# give the expected results:
|
||||
|
|
|
@ -1,16 +1,19 @@
|
|||
# RUN: yaml2obj %s -o %t1.o
|
||||
|
||||
# RUN: yaml2obj %S/Inputs/use-feature-foo.yaml -o %t.used.o
|
||||
# RUN: wasm-ld --no-entry -o - %t1.o %t.used.o | obj2yaml | FileCheck %s --check-prefix USED
|
||||
# RUN: wasm-ld --no-entry -o %t.used.exe %t1.o %t.used.o
|
||||
# RUN: obj2yaml < %t.used.exe | FileCheck %s --check-prefix USED
|
||||
|
||||
# RUN: yaml2obj %S/Inputs/require-feature-foo.yaml -o %t.required.o
|
||||
# RUN: wasm-ld --no-entry -o - %t1.o %t.required.o | obj2yaml | FileCheck %s --check-prefix REQUIRED
|
||||
# RUN: wasm-ld --no-entry -o %t.required.exe %t1.o %t.required.o
|
||||
# RUN: obj2yaml < %t.required.exe | FileCheck %s --check-prefix REQUIRED
|
||||
|
||||
# RUN: yaml2obj %S/Inputs/disallow-feature-foo.yaml -o %t.disallowed.o
|
||||
# RUN: not wasm-ld --no-entry -o - %t1.o %t.disallowed.o 2>&1 | FileCheck %s --check-prefix DISALLOWED
|
||||
# RUN: not wasm-ld --no-entry -o /dev/null %t1.o %t.disallowed.o 2>&1 | FileCheck %s --check-prefix DISALLOWED
|
||||
|
||||
# RUN: yaml2obj %S/Inputs/no-feature-foo.yaml -o %t.none.o
|
||||
# RUN: wasm-ld --no-entry -o - %t1.o %t.none.o | obj2yaml | FileCheck %s --check-prefix NONE
|
||||
# RUN: wasm-ld --no-entry -o %t.none.exe %t1.o %t.none.o
|
||||
# RUN: obj2yaml %t.none.exe | FileCheck %s --check-prefix NONE
|
||||
|
||||
# Check that the following combinations of feature linkage policies
|
||||
# give the expected results:
|
||||
|
|
Loading…
Reference in New Issue