From 80c32f05a7f69796a8e8be12d681c4a0faec430a Mon Sep 17 00:00:00 2001 From: Michal Gorny Date: Fri, 7 Dec 2018 18:57:09 +0000 Subject: [PATCH] [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 llvm-svn: 348628 --- lld/test/ELF/reproduce-backslash.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/test/ELF/reproduce-backslash.s b/lld/test/ELF/reproduce-backslash.s index 7a9964d..39e63cc 100644 --- a/lld/test/ELF/reproduce-backslash.s +++ b/lld/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 -- 2.7.4