]> granicus.if.org Git - clang/commitdiff
Fix test cl-response-file.c to work on all platforms including Windows/Solaris.
authorDouglas Yung <douglas.yung@sony.com>
Mon, 24 Jun 2019 22:26:08 +0000 (22:26 +0000)
committerDouglas Yung <douglas.yung@sony.com>
Mon, 24 Jun 2019 22:26:08 +0000 (22:26 +0000)
Differential Revision: https://reviews.llvm.org/D63678

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364245 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/cl-response-file.c

index 51ee00bff4ed18c26842c0848dfd653e3fc89bf9..73acfadfc7a3bb3ceca0fdee3d9bf5bd532ca06b 100644 (file)
@@ -4,7 +4,7 @@
 
 
 
-// RUN: echo '/I%S\Inputs\cl-response-file\ /DFOO=2' > %t.rsp
+// RUN: printf '%%s\n' '/I%S\Inputs\cl-response-file\ /DFOO=2' > %t.rsp
 // RUN: %clang_cl /c -### @%t.rsp -- %s 2>&1 | FileCheck %s
 
 // CHECK: "-I" "{{.*}}\\Inputs\\cl-response-file\\" "-D" "FOO=2"