[clang-tools-extra] r188349 - clang-tools-extra/test/cpp11-migrate/HeaderReplacements/main.cpp: Use "%/t" instead of "%t" on sed(1) to avoid \'s expanded to control chars.

NAKAMURA Takumi geek4civic at gmail.com
Tue Aug 13 19:28:25 PDT 2013


Author: chapuni
Date: Tue Aug 13 21:28:25 2013
New Revision: 188349

URL: http://llvm.org/viewvc/llvm-project?rev=188349&view=rev
Log:
clang-tools-extra/test/cpp11-migrate/HeaderReplacements/main.cpp: Use "%/t" instead of "%t" on sed(1) to avoid \'s expanded to control chars.

The feature, "%/t", has been introduced in llvm/lit since r188348.

Modified:
    clang-tools-extra/trunk/test/cpp11-migrate/HeaderReplacements/main.cpp

Modified: clang-tools-extra/trunk/test/cpp11-migrate/HeaderReplacements/main.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/cpp11-migrate/HeaderReplacements/main.cpp?rev=188349&r1=188348&r2=188349&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/cpp11-migrate/HeaderReplacements/main.cpp (original)
+++ clang-tools-extra/trunk/test/cpp11-migrate/HeaderReplacements/main.cpp Tue Aug 13 21:28:25 2013
@@ -10,10 +10,10 @@
 // RUN: ls -1 %t/Test | FileCheck %s --check-prefix=COMMON_CPP
 // RUN: cp %S/common.h.yaml %t/Test/main.cpp_common.h.yaml
 // We need to put the build path to the expected YAML file to diff against the generated one.
-// RUN: sed -e 's#$(path)#%t/Test#g' %S/common.h.yaml > %t/Test/main.cpp_common.h.yaml
+// RUN: sed -e 's#$(path)#%/t/Test#g' %S/common.h.yaml > %t/Test/main.cpp_common.h.yaml
 // RUN: sed -i -e 's#\\#/#g' %t/Test/main.cpp_common.h_*.yaml
 // RUN: diff -b %t/Test/main.cpp_common.h.yaml %t/Test/main.cpp_common.h_*.yaml
-// RUN: sed -e 's#$(path)#%t/Test#g' -e 's#main.cpp"#common.cpp"#g' %S/common.h.yaml > %t/Test/common.cpp_common.h.yaml
+// RUN: sed -e 's#$(path)#%/t/Test#g' -e 's#main.cpp"#common.cpp"#g' %S/common.h.yaml > %t/Test/common.cpp_common.h.yaml
 // RUN: sed -i -e 's#\\#/#g' %t/Test/common.cpp_common.h_*.yaml
 // RUN: diff -b %t/Test/common.cpp_common.h.yaml %t/Test/common.cpp_common.h_*.yaml
 //
@@ -28,7 +28,7 @@
 // RUN: ls -1 %t/Test | FileCheck %s --check-prefix=MAIN_CPP
 // RUN: ls -1 %t/Test | FileCheck %s --check-prefix=NO_COMMON
 // We need to put the build path to the expected YAML file to diff against the generated one.
-// RUN: sed -e 's#$(path)#%t/Test#g' %S/common.h.yaml > %t/Test/main.cpp_common.h.yaml
+// RUN: sed -e 's#$(path)#%/t/Test#g' %S/common.h.yaml > %t/Test/main.cpp_common.h.yaml
 // RUN: sed -i -e 's#\\#/#g' %t/Test/main.cpp_common.h_*.yaml
 // RUN: diff -b %t/Test/main.cpp_common.h.yaml %t/Test/main.cpp_common.h_*.yaml
 //
@@ -46,6 +46,3 @@ void test_header_replacement() {
   dostuff();
   func2();
 }
-
-// FIXME: Investigating on lit-win32.
-// REQUIRES: shell





More information about the cfe-commits mailing list