[lld] r348628 - [test] Fix reproduce-blackslash.s test with NetBSD tar

Michal Gorny via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 7 10:57:09 PST 2018


Author: mgorny
Date: Fri Dec  7 10:57:09 2018
New Revision: 348628

URL: http://llvm.org/viewvc/llvm-project?rev=348628&view=rev
Log:
[test] Fix reproduce-blackslash.s test with NetBSD tar

Unlike GNU tar and libarchive bsdtar, NetBSD 'tar -t' output does not
use C-style escapes and instead outputs paths literally.  Fix the test
to account both for escaped and literal backslash output.

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

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

Modified: lld/trunk/test/ELF/reproduce-backslash.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/reproduce-backslash.s?rev=348628&r1=348627&r2=348628&view=diff
==============================================================================
--- lld/trunk/test/ELF/reproduce-backslash.s (original)
+++ lld/trunk/test/ELF/reproduce-backslash.s Fri Dec  7 10:57:09 2018
@@ -6,4 +6,4 @@
 # RUN: ld.lld %T/foo\\.o --reproduce %T/repro.tar -o /dev/null
 # RUN: tar tf %T/repro.tar | FileCheck %s
 
-# CHECK: repro/{{.*}}/foo\\.o
+# CHECK: repro/{{.*}}/foo\{{[\]?}}.o




More information about the llvm-commits mailing list