]> granicus.if.org Git - clang/commitdiff
Fix test clang-diff-json.cpp
authorAaron Smith <aaron.smith@microsoft.com>
Sat, 10 Feb 2018 21:28:55 +0000 (21:28 +0000)
committerAaron Smith <aaron.smith@microsoft.com>
Sat, 10 Feb 2018 21:28:55 +0000 (21:28 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@324824 91177308-0d34-0410-b5e6-96231b3b80d8

test/Tooling/clang-diff-json.cpp

index 9aac6fa8b15bb7fa36db8d727a4f32540196aa47..20c808cb0f19bd33affcb528e4ed75ee7b744b36 100644 (file)
@@ -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;