[PATCH] D55441: [lld] [test] Fix reproduce-blackslash.s test with NetBSD tar

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 7 09:13:00 PST 2018


mgorny created this revision.
mgorny added reviewers: krytarowski, bkramer, ruiu, davide.
mgorny added a project: lld.
Herald added subscribers: llvm-commits, MaskRay, arichardson, emaste.
Herald added a reviewer: espindola.

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.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D55441

Files:
  test/ELF/reproduce-backslash.s


Index: test/ELF/reproduce-backslash.s
===================================================================
--- test/ELF/reproduce-backslash.s
+++ test/ELF/reproduce-backslash.s
@@ -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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55441.177232.patch
Type: text/x-patch
Size: 370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181207/d7a0e01c/attachment.bin>


More information about the cfe-commits mailing list