[ELF] Attempt to fix Windows buidbot
authorEugene Leviant <eleviant@accesssoftek.com>
Mon, 21 Nov 2016 13:57:50 +0000 (13:57 +0000)
committerEugene Leviant <eleviant@accesssoftek.com>
Mon, 21 Nov 2016 13:57:50 +0000 (13:57 +0000)
llvm-svn: 287538

lld/test/ELF/Inputs/bad-archive.a [new file with mode: 0644]
lld/test/ELF/bad-archive.s

diff --git a/lld/test/ELF/Inputs/bad-archive.a b/lld/test/ELF/Inputs/bad-archive.a
new file mode 100644 (file)
index 0000000..c9c6fbf
--- /dev/null
@@ -0,0 +1,2 @@
+!<arch>
+this is malformed archive used in bad-archive.s
index ed9567b..39c8e16 100644 (file)
@@ -3,11 +3,9 @@
 // Check bad archive error reporting with --whole-archive
 // and without it.
 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
-// RUN: echo "!<arch>" > %t.bad.a
-// RUN: echo "bad archive" >> %t.bad.a
-// RUN: not ld.lld %t.o %t.bad.a -o %t 2>&1 | FileCheck %s
-// RUN: not ld.lld %t.o --whole-archive %t.bad.a -o %t 2>&1 | FileCheck %s
-// CHECK: {{.*}}.bad.a: failed to parse archive
+// RUN: not ld.lld %t.o %p/Inputs/bad-archive.a -o %t 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o --whole-archive %p/Inputs/bad-archive.a -o %t 2>&1 | FileCheck %s
+// CHECK: bad-archive.a: failed to parse archive
 
 .globl _start
 _start: