Skip to content

Commit 5fbb73a

Browse files
committed
Don't invoke the python interpreter directly. Use the lit name for it.
1 parent ad2a733 commit 5fbb73a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

clang/test/3C/json_formatting.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// RUN: rm -rf %t*
22
// RUN: mkdir %t.alltypes && cd %t.alltypes
33
// RUN: 3c -base-dir=%S -alltypes -dump-stats -dump-intermediate -debug-solver %s --
4-
// RUN: python -c "import json, glob; [json.load(open(f)) for f in glob.glob('*.json')]"
4+
// RUN: %python -c "import json, glob; [json.load(open(f)) for f in glob.glob('*.json')]"
55
// RUN: mkdir %t.noalltypes && cd %t.noalltypes
66
// RUN: 3c -base-dir=%S -dump-stats -dump-intermediate -debug-solver %s --
7-
// RUN: python -c "import json, glob; [json.load(open(f)) for f in glob.glob('*.json')]"
7+
// RUN: %python -c "import json, glob; [json.load(open(f)) for f in glob.glob('*.json')]"
88

99
// Testing that json files output for statistics logging are well formed
1010

clang/test/3C/json_formatting_backslash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
// RUN: cp %s .
2222
// RUN: cp %S/json_formatting.c 'json\_formatting.h'
2323
// RUN: 3c -alltypes -dump-stats -dump-intermediate -debug-solver -output-dir=out.checked json_formatting_backslash.c --
24-
// RUN: python -c "import json, glob; [json.load(open(f)) for f in glob.glob('*.json')]"
24+
// RUN: %python -c "import json, glob; [json.load(open(f)) for f in glob.glob('*.json')]"
2525

2626
// RUN: mkdir %t.noalltypes && cd %t.noalltypes
2727
// RUN: cp %s .
2828
// RUN: cp %S/json_formatting.c 'json\_formatting.h'
2929
// RUN: 3c -dump-stats -dump-intermediate -debug-solver -output-dir=out.checked json_formatting_backslash.c --
30-
// RUN: python -c "import json, glob; [json.load(open(f)) for f in glob.glob('*.json')]"
30+
// RUN: %python -c "import json, glob; [json.load(open(f)) for f in glob.glob('*.json')]"
3131

3232
// Even though this looks like a double-quoted string, the Checked C compiler
3333
// seems to require the backslash to _not_ be escaped. We choose `\_` because it

clang/test/3C/multiple_tu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: rm -rf %t
22
// RUN: mkdir %t && cd %t
3-
// RUN: python -c 'import sys, json; json.dump([{"arguments": ["clang", "-c", r"%s"], "directory": r"%S", "file": r"%s"}]*2, sys.stdout)' > compile_commands.json
3+
// RUN: %python -c 'import sys, json; json.dump([{"arguments": ["clang", "-c", r"%s"], "directory": r"%S", "file": r"%s"}]*2, sys.stdout)' > compile_commands.json
44
// RUN: 3c -dump-stats -p %t -base-dir=%S %s | FileCheck -match-full-lines %s
5-
// RUN: python -c 'import sys, json; exit(any(e["Name"].startswith("ImplicitCastExpr") for e in json.load(sys.stdin)["RootCauseStats"]))' < PerWildPtrStats.json
5+
// RUN: %python -c 'import sys, json; exit(any(e["Name"].startswith("ImplicitCastExpr") for e in json.load(sys.stdin)["RootCauseStats"]))' < PerWildPtrStats.json
66

77
// The compilation database used for this test includes two entries for this
88
// file, causing 3C to process it twice. In issue #661, this caused type

0 commit comments

Comments
 (0)