From 45ba8e982719994e0ace5072816377a8c49a9a3f Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 26 Apr 2016 20:32:51 +0000 Subject: [PATCH] Try to get ResponseFile.ll passing on Windows after r267556. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267599 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Other/ResponseFile.ll | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/Other/ResponseFile.ll b/test/Other/ResponseFile.ll index 92648b86f5f..346e2560663 100644 --- a/test/Other/ResponseFile.ll +++ b/test/Other/ResponseFile.ll @@ -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 -- 2.11.0