]> granicus.if.org Git - llvm/commitdiff
[test]Make test work on Windows
authorJames Henderson <jh7370@my.bristol.ac.uk>
Tue, 14 May 2019 10:53:35 +0000 (10:53 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Tue, 14 May 2019 10:53:35 +0000 (10:53 +0000)
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

index 78ce2e1ed105203ad35ca363a705e42b2c2c7ec9..24a212028bf7aec3e191c6ac91f12ff1fbb4cb34 100644 (file)
@@ -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