[llvm] r267599 - Try to get ResponseFile.ll passing on Windows after r267556.
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 26 13:32:51 PDT 2016
Author: nico
Date: Tue Apr 26 15:32:51 2016
New Revision: 267599
URL: http://llvm.org/viewvc/llvm-project?rev=267599&view=rev
Log:
Try to get ResponseFile.ll passing on Windows after r267556.
Modified:
llvm/trunk/test/Other/ResponseFile.ll
Modified: llvm/trunk/test/Other/ResponseFile.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/ResponseFile.ll?rev=267599&r1=267598&r2=267599&view=diff
==============================================================================
--- llvm/trunk/test/Other/ResponseFile.ll (original)
+++ llvm/trunk/test/Other/ResponseFile.ll Tue Apr 26 15:32:51 2016
@@ -1,8 +1,10 @@
; Test that we can recurse, at least a little bit. The -time-passes flag here
; is a hack to make sure that neither echo nor the shell expands the response
; file for us. Tokenization with quotes is tested in unittests.
-; RUN: echo %s > %t.list1
-; RUN: echo "-time-passes @%t.list1" > %t.list2
+; On Windows, paths contain \ characters, which are escape characters in
+; GNU-style response files. So replace \ with \\ to make the tests work there.
+; RUN: echo %s | sed -e 's:\\:\\\\:g' > %t.list1
+; RUN: echo "-time-passes @%t.list1" | sed -e 's:\\:\\\\:g' > %t.list2
; RUN: llvm-as @%t.list2 -o %t.bc
; RUN: llvm-nm %t.bc 2>&1 | FileCheck %s
More information about the llvm-commits
mailing list