diff options
| author | Aaron Smith <aaron.smith@microsoft.com> | 2018-02-10 21:28:55 +0000 |
|---|---|---|
| committer | Aaron Smith <aaron.smith@microsoft.com> | 2018-02-10 21:28:55 +0000 |
| commit | 51a6fc6fec60b0b16a3b3478c589b780af339f41 (patch) | |
| tree | 077d8fbcfb1025295bdc462bb7e9e3c5f4d4e536 | |
| parent | cb9a02f60e27c834348fd56001ab525235b6edb8 (diff) | |
| download | bcm5719-llvm-51a6fc6fec60b0b16a3b3478c589b780af339f41.tar.gz bcm5719-llvm-51a6fc6fec60b0b16a3b3478c589b780af339f41.zip | |
Fix test clang-diff-json.cpp
Summary:
This test would fail if the python path had spaces. Add a quote around the path to fix this problem and update some test values changed by the addition of quotes around the path.
Tested on Windows and Linux with Python 3.x
Reviewers: zturner, llvm-commits
Subscribers: klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D43164
llvm-svn: 324824
| -rw-r--r-- | clang/test/Tooling/clang-diff-json.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Tooling/clang-diff-json.cpp b/clang/test/Tooling/clang-diff-json.cpp index 9aac6fa8b15..20c808cb0f1 100644 --- a/clang/test/Tooling/clang-diff-json.cpp +++ b/clang/test/Tooling/clang-diff-json.cpp @@ -1,10 +1,10 @@ // RUN: clang-diff -ast-dump-json %s -- \ -// RUN: | %python -c 'import json, sys; json.dump(json.loads(sys.stdin.read()), sys.stdout, sort_keys=True, indent=2)' \ +// RUN: | '%python' -c 'import json, sys; json.dump(json.loads(sys.stdin.read()), sys.stdout, sort_keys=True, indent=2)' \ // RUN: | FileCheck %s -// CHECK: "begin": 299, +// CHECK: "begin": 301, // CHECK: "type": "FieldDecl", -// CHECK: "end": 319, +// CHECK: "end": 321, // CHECK: "type": "CXXRecordDecl", class A { int x; |

