diff options
author | Reid Kleckner <rnk@google.com> | 2016-08-16 16:07:46 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-08-16 16:07:46 +0000 |
commit | 23c2eac34dc4560a976be703ec7a45198abce12c (patch) | |
tree | 87c081dc6a6c70db9f16a37a47e4a10922bcf8b6 /clang-tools-extra/test/include-fixer/include_path.cpp | |
parent | 66e7717b4620e439f6fc0f1fe4a29edb0cde3512 (diff) | |
download | bcm5719-llvm-23c2eac34dc4560a976be703ec7a45198abce12c.tar.gz bcm5719-llvm-23c2eac34dc4560a976be703ec7a45198abce12c.zip |
Remove most instances of REQUIRES: shell from the tools/extra tests
None of these tests actually require bash, they just have quoting bugs
when paths contain backslashes and colons. Fix them with the "%/T" lit
substitution variants.
llvm-svn: 278815
Diffstat (limited to 'clang-tools-extra/test/include-fixer/include_path.cpp')
-rw-r--r-- | clang-tools-extra/test/include-fixer/include_path.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang-tools-extra/test/include-fixer/include_path.cpp b/clang-tools-extra/test/include-fixer/include_path.cpp index 31ae52eb122..28b6ace5f59 100644 --- a/clang-tools-extra/test/include-fixer/include_path.cpp +++ b/clang-tools-extra/test/include-fixer/include_path.cpp @@ -1,9 +1,8 @@ -// REQUIRES: shell // RUN: mkdir -p %T/include-fixer/include // RUN: mkdir -p %T/include-fixer/symbols // RUN: mkdir -p %T/include-fixer/build // RUN: mkdir -p %T/include-fixer/src -// RUN: sed 's|test_dir|%T/include-fixer|g' %S/Inputs/database_template.json > %T/include-fixer/build/compile_commands.json +// RUN: sed 's|test_dir|%/T/include-fixer|g' %S/Inputs/database_template.json > %T/include-fixer/build/compile_commands.json // RUN: echo -e '#include "bar.h"\nb::a::bar f;' > %T/include-fixer/src/bar.cpp // RUN: echo 'namespace b { namespace a { class bar {}; } }' > %T/include-fixer/include/bar.h // RUN: cd %T/include-fixer/build @@ -15,6 +14,6 @@ // RUN: clang-include-fixer -db=yaml -input=%T/include-fixer/build/find_all_symbols.yaml -minimize-paths=true -p=. %T/include-fixer/src/bar.cpp // RUN: FileCheck -input-file=%T/include-fixer/src/bar.cpp %s -// CHECK-YAML: ../include/bar.h +// CHECK-YAML: ..{{[/\\]}}include{{[/\\]}}bar.h // CHECK: #include "bar.h" // CHECK: b::a::bar f; |