[llvm] r360660 - [test]Make test work on Windows

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 03:53:35 PDT 2019


Author: jhenderson
Date: Tue May 14 03:53:35 2019
New Revision: 360660

URL: http://llvm.org/viewvc/llvm-project?rev=360660&view=rev
Log:
[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

Modified:
    llvm/trunk/test/tools/llvm-objdump/X86/source-interleave-x86_64.ll

Modified: llvm/trunk/test/tools/llvm-objdump/X86/source-interleave-x86_64.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/X86/source-interleave-x86_64.ll?rev=360660&r1=360659&r2=360660&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/X86/source-interleave-x86_64.ll (original)
+++ llvm/trunk/test/tools/llvm-objdump/X86/source-interleave-x86_64.ll Tue May 14 03:53:35 2019
@@ -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




More information about the llvm-commits mailing list