forked from OSchip/llvm-project
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
This commit is contained in:
parent
8a3357d252
commit
db2162903e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue