diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-08-14 02:28:25 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-08-14 02:28:25 +0000 |
commit | db2162903e02073e62a6265404977024fe16dfa1 (patch) | |
tree | 3c841c92171d03cfe47fedec368799bb58c88966 | |
parent | 8a3357d252588e733c14cb282c8e61436d53a512 (diff) | |
download | bcm5719-llvm-db2162903e02073e62a6265404977024fe16dfa1.tar.gz bcm5719-llvm-db2162903e02073e62a6265404977024fe16dfa1.zip |
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.
llvm-svn: 188349
-rw-r--r-- | clang-tools-extra/test/cpp11-migrate/HeaderReplacements/main.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/clang-tools-extra/test/cpp11-migrate/HeaderReplacements/main.cpp b/clang-tools-extra/test/cpp11-migrate/HeaderReplacements/main.cpp index 444e4beeb6c..9a2b0fcf60d 100644 --- a/clang-tools-extra/test/cpp11-migrate/HeaderReplacements/main.cpp +++ b/clang-tools-extra/test/cpp11-migrate/HeaderReplacements/main.cpp @@ -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 |