[lld] r290252 - [ELF/tests] Use cpio -it instead of cpio -t.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 21 04:22:20 PST 2016


Author: davide
Date: Wed Dec 21 06:22:19 2016
New Revision: 290252

URL: http://llvm.org/viewvc/llvm-project?rev=290252&view=rev
Log:
[ELF/tests] Use cpio -it instead of cpio -t.

OpenBSD's cpio does not accept the -t option without -i.
Apparently some systems implement cpio -t as a shortcut
for cpio -it, the latter is the only thing that's documented.
This change avoids test failures on OpenBSD.

Patch by Mark Kettenis!

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

Modified:
    lld/trunk/test/ELF/reproduce-backslash.s
    lld/trunk/test/ELF/reproduce-windows.s
    lld/trunk/test/ELF/reproduce.s

Modified: lld/trunk/test/ELF/reproduce-backslash.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/reproduce-backslash.s?rev=290252&r1=290251&r2=290252&view=diff
==============================================================================
--- lld/trunk/test/ELF/reproduce-backslash.s (original)
+++ lld/trunk/test/ELF/reproduce-backslash.s Wed Dec 21 06:22:19 2016
@@ -4,6 +4,6 @@
 # legal for a filename to contain backslashes.
 # RUN: llvm-mc %s -o foo\\.o -filetype=obj -triple=x86_64-pc-linux
 # RUN: ld.lld foo\\.o --reproduce repro
-# RUN: cpio -t < repro.cpio | FileCheck %s
+# RUN: cpio -it < repro.cpio | FileCheck %s
 
 # CHECK: repro/{{.*}}/foo\.o

Modified: lld/trunk/test/ELF/reproduce-windows.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/reproduce-windows.s?rev=290252&r1=290251&r2=290252&view=diff
==============================================================================
--- lld/trunk/test/ELF/reproduce-windows.s (original)
+++ lld/trunk/test/ELF/reproduce-windows.s Wed Dec 21 06:22:19 2016
@@ -6,7 +6,7 @@
 # RUN: llvm-mc %s -o %t.dir/build/foo.o -filetype=obj -triple=x86_64-pc-linux
 # RUN: cd %t.dir
 # RUN: ld.lld build/foo.o --reproduce repro
-# RUN: cpio -t < repro.cpio | FileCheck %s
+# RUN: cpio -it < repro.cpio | FileCheck %s
 
 # CHECK: repro/response.txt
 # CHECK: repro/{{.*}}/build/foo.o

Modified: lld/trunk/test/ELF/reproduce.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/reproduce.s?rev=290252&r1=290251&r2=290252&view=diff
==============================================================================
--- lld/trunk/test/ELF/reproduce.s (original)
+++ lld/trunk/test/ELF/reproduce.s Wed Dec 21 06:22:19 2016
@@ -51,7 +51,7 @@
 # RSP2-NEXT: -soname="foo bar"
 # RSP2-NEXT: -soname="foo bar"
 
-# RUN: cpio -t < repro2.cpio | FileCheck %s
+# RUN: cpio -it < repro2.cpio | FileCheck %s
 # CHECK:      repro2/response.txt
 # CHECK-NEXT: repro2/version.txt
 # CHECK-NEXT: repro2/{{.*}}/dyn




More information about the llvm-commits mailing list