summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/include-fixer/commandline_options.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-08-16 16:07:46 +0000
committerReid Kleckner <rnk@google.com>2016-08-16 16:07:46 +0000
commit23c2eac34dc4560a976be703ec7a45198abce12c (patch)
tree87c081dc6a6c70db9f16a37a47e4a10922bcf8b6 /clang-tools-extra/test/include-fixer/commandline_options.cpp
parent66e7717b4620e439f6fc0f1fe4a29edb0cde3512 (diff)
downloadbcm5719-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/commandline_options.cpp')
-rw-r--r--clang-tools-extra/test/include-fixer/commandline_options.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang-tools-extra/test/include-fixer/commandline_options.cpp b/clang-tools-extra/test/include-fixer/commandline_options.cpp
index 85c7e26bd7d..3cc77b49569 100644
--- a/clang-tools-extra/test/include-fixer/commandline_options.cpp
+++ b/clang-tools-extra/test/include-fixer/commandline_options.cpp
@@ -1,9 +1,8 @@
-// REQUIRES: shell
// RUN: echo "foo f;" > %t.cpp
// RUN: clang-include-fixer -db=fixed -input='foo= "foo.h","bar.h"' -output-headers %t.cpp -- | FileCheck %s
-// RUN: cat %t.cpp | clang-include-fixer -stdin -insert-header='{FilePath: %t.cpp, QuerySymbolInfos: [{RawIdentifier: foo, Range: {Offset: 0, Length: 3}}], HeaderInfos: [{Header: "\"foo.h\"", QualifiedName: "foo"}]}' %t.cpp | FileCheck %s -check-prefix=CHECK-CODE
-// RUN: cat %t.cpp | not clang-include-fixer -stdin -insert-header='{FilePath: %t.cpp, QuerySymbolInfos: [{RawIdentifier: foo, Range: {Offset: 0, Length: 3}}], HeaderInfos: [{Header: "\"foo.h\"", QualifiedName: "foo"},{Header: "\"foo2.h\"", QualifiedName: "foo"}]}' %t.cpp
-// RUN: cat %t.cpp | clang-include-fixer -stdin -insert-header='{FilePath: %t.cpp, QuerySymbolInfos: [{RawIdentifier: foo, Range: {Offset: 0, Length: 3}}], HeaderInfos: [{Header: "\"foo.h\"", QualifiedName: "a:foo"},{Header: "\"foo.h\"", QualifiedName: "b:foo"}]}' %t.cpp
+// RUN: cat %t.cpp | clang-include-fixer -stdin -insert-header='{FilePath: "%/t.cpp", QuerySymbolInfos: [{RawIdentifier: foo, Range: {Offset: 0, Length: 3}}], HeaderInfos: [{Header: "\"foo.h\"", QualifiedName: "foo"}]}' %t.cpp | FileCheck %s -check-prefix=CHECK-CODE
+// RUN: cat %t.cpp | not clang-include-fixer -stdin -insert-header='{FilePath: "%/t.cpp", QuerySymbolInfos: [{RawIdentifier: foo, Range: {Offset: 0, Length: 3}}], HeaderInfos: [{Header: "\"foo.h\"", QualifiedName: "foo"},{Header: "\"foo2.h\"", QualifiedName: "foo"}]}' %t.cpp
+// RUN: cat %t.cpp | clang-include-fixer -stdin -insert-header='{FilePath: "%/t.cpp", QuerySymbolInfos: [{RawIdentifier: foo, Range: {Offset: 0, Length: 3}}], HeaderInfos: [{Header: "\"foo.h\"", QualifiedName: "a:foo"},{Header: "\"foo.h\"", QualifiedName: "b:foo"}]}' %t.cpp
//
// CHECK: "HeaderInfos": [
// CHECK-NEXT: {"Header": "\"foo.h\"",
OpenPOWER on IntegriCloud