From d5dadcc62b2316fd9e268a80f61b6a626940aa32 Mon Sep 17 00:00:00 2001 From: James Henderson Date: Tue, 14 May 2019 10:53:35 +0000 Subject: [PATCH] [test]Make test work on Windows Previously, the test didn't work because '\' characters appeared in the sed string, causing bogus escape characters to form in the substituted string literal. Switching to using '%/p' causes the path to be emitted with '/' characters instead, so that there are are no escaping issues. Reviewed by: kzhuravl, grimar Differential Revision: https://reviews.llvm.org/D61856 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360660 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tools/llvm-objdump/X86/source-interleave-x86_64.ll | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/tools/llvm-objdump/X86/source-interleave-x86_64.ll b/test/tools/llvm-objdump/X86/source-interleave-x86_64.ll index 78ce2e1ed10..24a212028bf 100644 --- a/test/tools/llvm-objdump/X86/source-interleave-x86_64.ll +++ b/test/tools/llvm-objdump/X86/source-interleave-x86_64.ll @@ -1,5 +1,4 @@ -; REQUIRES: shell -; RUN: sed -e "s,SRC_COMPDIR,%p/Inputs,g" %s > %t.ll +; RUN: sed -e "s,SRC_COMPDIR,%/p/Inputs,g" %s > %t.ll ; RUN: llc -o %t.o -filetype=obj -mtriple=x86_64-pc-linux %t.ll ; RUN: llvm-objdump -d -l %t.o >%t0 ; RUN: llvm-objdump -dl %t.o >%t1 -- 2.50.1