summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2019-03-21 18:24:05 +0000
committerReid Kleckner <rnk@google.com>2019-03-21 18:24:05 +0000
commit05ea3a6be3ba172e8824a8fb66b799b3cc2c72f3 (patch)
treed503e8575979e501513561dff26f73ed354fd56f
parentf0d7d87a4770361186491f1d5a2997ab5d1741b9 (diff)
downloadbcm5719-llvm-05ea3a6be3ba172e8824a8fb66b799b3cc2c72f3.tar.gz
bcm5719-llvm-05ea3a6be3ba172e8824a8fb66b799b3cc2c72f3.zip
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
-rw-r--r--lld/test/wasm/target-feature-disallowed.yaml6
-rw-r--r--lld/test/wasm/target-feature-required.yaml7
-rw-r--r--lld/test/wasm/target-feature-used.yaml11
3 files changed, 15 insertions, 9 deletions
diff --git a/lld/test/wasm/target-feature-disallowed.yaml b/lld/test/wasm/target-feature-disallowed.yaml
index 9a94f0d1f10..687d86b40d6 100644
--- a/lld/test/wasm/target-feature-disallowed.yaml
+++ b/lld/test/wasm/target-feature-disallowed.yaml
@@ -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:
diff --git a/lld/test/wasm/target-feature-required.yaml b/lld/test/wasm/target-feature-required.yaml
index 68df45c194a..59031d4c013 100644
--- a/lld/test/wasm/target-feature-required.yaml
+++ b/lld/test/wasm/target-feature-required.yaml
@@ -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:
diff --git a/lld/test/wasm/target-feature-used.yaml b/lld/test/wasm/target-feature-used.yaml
index 6a353991f54..de121ff7704 100644
--- a/lld/test/wasm/target-feature-used.yaml
+++ b/lld/test/wasm/target-feature-used.yaml
@@ -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:
OpenPOWER on IntegriCloud