[LLD] Restore tests that use "-" as output
authorAndrew Ng <anng.sw@gmail.com>
Wed, 27 Mar 2019 15:30:52 +0000 (15:30 +0000)
committerAndrew Ng <anng.sw@gmail.com>
Wed, 27 Mar 2019 15:30:52 +0000 (15:30 +0000)
No longer require workarounds for output to "-" (stdout) for
Windows. These workarounds were just hiding the actual problem which has
been fixed in r357058.

Differential Revision: https://reviews.llvm.org/D59824

llvm-svn: 357072

lld/test/ELF/stdout.s
lld/test/wasm/target-feature-disallowed.yaml
lld/test/wasm/target-feature-none.yaml
lld/test/wasm/target-feature-required.yaml
lld/test/wasm/target-feature-used.yaml

index fcce79f..6c41436 100644 (file)
@@ -8,10 +8,7 @@
 # CHECK: 201000: 90 nop
 
 # RUN: ld.lld %t.o -o %t2
-
-# FIXME: Add "RUN" in front of this line once the test passes on Windows
-# with it.
-# diff %t1 %t2
+# RUN: diff %t1 %t2
 
 .globl _start
 _start:
index d919aea..9eaf7f6 100644 (file)
@@ -7,12 +7,10 @@
 # RUN: obj2yaml %t.unspecified.wasm | FileCheck %s --check-prefix UNSPECIFIED
 
 # RUN: yaml2obj %S/Inputs/disallow-feature-foo.yaml -o %t.disallowed.o
-# RUN: wasm-ld --no-entry -o %t.disallowed.wasm %t1.o %t.disallowed.o
-# RUN: obj2yaml %t.disallowed.wasm | FileCheck %s --check-prefix DISALLOWED
+# RUN: wasm-ld --no-entry -o - %t1.o %t.disallowed.o | obj2yaml | FileCheck %s --check-prefix DISALLOWED
 
 # RUN: yaml2obj %S/Inputs/no-feature-foo.yaml -o %t.none.o
-# RUN: wasm-ld --no-entry -o %t.none.wasm %t1.o %t.none.o
-# RUN: obj2yaml %t.none.wasm | FileCheck %s --check-prefix NONE
+# RUN: wasm-ld --no-entry -o - %t1.o %t.none.o | obj2yaml | FileCheck %s --check-prefix NONE
 
 # Check that the following combinations of feature linkage policies
 # give the expected results:
index 974f72c..82fc527 100644 (file)
@@ -1,13 +1,10 @@
 # RUN: yaml2obj %s -o %t1.o
 
-# RUN: wasm-ld --no-entry -o %t.empty.wasm %t1.o
-# RUN: obj2yaml %t.empty.wasm | FileCheck %s --check-prefix EMPTY
+# RUN: wasm-ld --no-entry -o - %t1.o | obj2yaml | FileCheck %s --check-prefix EMPTY
 
-# RUN: wasm-ld --no-entry --features= -o %t.empty.2.wasm %t1.o
-# RUN: obj2yaml %t.empty.2.wasm | FileCheck %s --check-prefix EMPTY
+# RUN: wasm-ld --no-entry --features= -o - %t1.o | obj2yaml | FileCheck %s --check-prefix EMPTY
 
-# RUN: wasm-ld --no-entry --features=foo,bar,baz -o %t.specified.wasm %t1.o
-# RUN: obj2yaml %t.specified.wasm | FileCheck %s --check-prefix SPECIFIED
+# RUN: wasm-ld --no-entry --features=foo,bar,baz -o - %t1.o | obj2yaml | FileCheck %s --check-prefix SPECIFIED
 
 --- !WASM
 FileHeader:
index 8592304..ce67efc 100644 (file)
@@ -1,28 +1,23 @@
 # RUN: yaml2obj %s -o %t1.o
 
-# RUN: wasm-ld --no-entry --features=foo,bar,baz -o %t.specified.wasm %t1.o
-# RUN: obj2yaml %t.specified.wasm | FileCheck %s --check-prefix SPECIFIED
+# RUN: wasm-ld --no-entry --features=foo,bar,baz -o - %t1.o | obj2yaml | FileCheck %s --check-prefix SPECIFIED
 
-# RUN: not wasm-ld --no-entry --features=bar,baz,quux -o - %t1.o 2>&1 | FileCheck %s --check-prefix UNSPECIFIED
+# RUN: not wasm-ld --no-entry --features=bar,baz,quux -o /dev/null %t1.o 2>&1 | FileCheck %s --check-prefix UNSPECIFIED
 
-# RUN: wasm-ld --no-entry --no-check-features --features=bar,baz,quux -o %t.unspecified.wasm %t1.o
-# RUN: obj2yaml %t.unspecified.wasm | FileCheck %s --check-prefix UNSPECIFIED-NOCHECK
+# RUN: wasm-ld --no-entry --no-check-features --features=bar,baz,quux -o - %t1.o | obj2yaml | FileCheck %s --check-prefix UNSPECIFIED-NOCHECK
 
 # RUN: yaml2obj %S/Inputs/require-feature-foo.yaml -o %t.required.o
-# RUN: wasm-ld --no-entry -o %t.required.wasm %t1.o %t.required.o
-# RUN: obj2yaml %t.required.wasm | FileCheck %s --check-prefix REQUIRED
+# RUN: wasm-ld --no-entry -o - %t1.o %t.required.o | obj2yaml | FileCheck %s --check-prefix REQUIRED
 
 # RUN: yaml2obj %S/Inputs/disallow-feature-foo.yaml -o %t.disallowed.o
 # RUN: not wasm-ld --no-entry -o /dev/null %t1.o %t.disallowed.o 2>&1 | FileCheck %s --check-prefix DISALLOWED
 
-# RUN: wasm-ld --no-entry --no-check-features -o %t.disallowed.wasm %t1.o %t.disallowed.o
-# RUN: obj2yaml %t.disallowed.wasm | FileCheck %s --check-prefix DISALLOWED-NOCHECK
+# RUN: wasm-ld --no-entry --no-check-features -o - %t1.o %t.disallowed.o | obj2yaml | FileCheck %s --check-prefix DISALLOWED-NOCHECK
 
 # RUN: yaml2obj %S/Inputs/no-feature-foo.yaml -o %t.none.o
 # RUN: not wasm-ld --no-entry -o /dev/null %t1.o %t.none.o 2>&1 | FileCheck %s --check-prefix NONE
 
-# RUN: wasm-ld --no-entry --no-check-features -o %t.none.wasm %t1.o %t.none.o
-# RUN: obj2yaml %t.none.wasm | FileCheck %s --check-prefix NONE-NOCHECK
+# RUN: wasm-ld --no-entry --no-check-features -o - %t1.o %t.none.o | obj2yaml | FileCheck %s --check-prefix NONE-NOCHECK
 
 # Check that the following combinations of feature linkage policies
 # give the expected results:
index 693afbf..7301a13 100644 (file)
@@ -1,30 +1,24 @@
 # RUN: yaml2obj %s -o %t1.o
 
-# RUN: wasm-ld --no-entry --features=foo,bar,baz -o %t.specified.wasm %t1.o
-# RUN: obj2yaml %t.specified.wasm | FileCheck %s --check-prefix SPECIFIED
+# RUN: wasm-ld --no-entry --features=foo,bar,baz -o - %t1.o | obj2yaml | FileCheck %s --check-prefix SPECIFIED
 
-# RUN: not wasm-ld --no-entry --features=bar,baz,quux -o - %t1.o 2>&1 | FileCheck %s --check-prefix UNSPECIFIED
+# RUN: not wasm-ld --no-entry --features=bar,baz,quux -o /dev/null %t1.o 2>&1 | FileCheck %s --check-prefix UNSPECIFIED
 
-# RUN: wasm-ld --no-entry --no-check-features --features=bar,baz,quux -o %t.unspecified.wasm %t1.o
-# RUN: obj2yaml %t.unspecified.wasm| FileCheck %s --check-prefix UNSPECIFIED-NOCHECK
+# RUN: wasm-ld --no-entry --no-check-features --features=bar,baz,quux -o - %t1.o | obj2yaml | FileCheck %s --check-prefix UNSPECIFIED-NOCHECK
 
 # RUN: yaml2obj %S/Inputs/use-feature-foo.yaml -o %t.used.o
-# RUN: wasm-ld --no-entry -o %t.used.wasm %t1.o %t.used.o
-# RUN: obj2yaml %t.used.wasm | FileCheck %s --check-prefix USED
+# RUN: wasm-ld --no-entry -o - %t1.o %t.used.o | obj2yaml | FileCheck %s --check-prefix USED
 
 # RUN: yaml2obj %S/Inputs/require-feature-foo.yaml -o %t.required.o
-# RUN: wasm-ld --no-entry -o %t.required.wasm %t1.o %t.required.o
-# RUN: obj2yaml %t.required.wasm | FileCheck %s --check-prefix REQUIRED
+# RUN: wasm-ld --no-entry -o - %t1.o %t.required.o | obj2yaml | FileCheck %s --check-prefix REQUIRED
 
 # RUN: yaml2obj %S/Inputs/disallow-feature-foo.yaml -o %t.disallowed.o
 # RUN: not wasm-ld --no-entry -o /dev/null %t1.o %t.disallowed.o 2>&1 | FileCheck %s --check-prefix DISALLOWED
 
-# RUN: wasm-ld --no-entry --no-check-features -o %t.disallowed.wasm %t1.o %t.disallowed.o
-# RUN: obj2yaml %t.disallowed.wasm | FileCheck %s --check-prefix DISALLOWED-NOCHECK
+# RUN: wasm-ld --no-entry --no-check-features -o - %t1.o %t.disallowed.o | obj2yaml | FileCheck %s --check-prefix DISALLOWED-NOCHECK
 
 # RUN: yaml2obj %S/Inputs/no-feature-foo.yaml -o %t.none.o
-# RUN: wasm-ld --no-entry -o %t.none.wasm %t1.o %t.none.o
-# RUN: obj2yaml %t.none.wasm | FileCheck %s --check-prefix NONE
+# RUN: wasm-ld --no-entry -o - %t1.o %t.none.o | obj2yaml | FileCheck %s --check-prefix NONE
 
 # Check that the following combinations of feature linkage policies
 # give the expected results: