From: Aaron Smith Date: Sat, 10 Feb 2018 21:28:55 +0000 (+0000) Subject: Fix test clang-diff-json.cpp X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e54a18178e7c778183271b278c8241cd1839ebb;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@324824 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Tooling/clang-diff-json.cpp b/test/Tooling/clang-diff-json.cpp index 9aac6fa8b1..20c808cb0f 100644 --- a/test/Tooling/clang-diff-json.cpp +++ b/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;