Skip to content

Commit 8aa5990

Browse files
cd to a temporary directory for 3c -dump-stats commands.
1 parent 544725e commit 8aa5990

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

clang/test/3C/json_formating.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
// RUN: rm -rf %t*
2+
// RUN: mkdir %t.alltypes && cd %t.alltypes
13
// RUN: 3c -base-dir=%S -alltypes -dump-stats -dump-intermediate -debug-solver %s
24
// RUN: python -c "import json, glob; [json.load(open(f)) for f in glob.glob('*.json')]"
5+
// RUN: mkdir %t.noalltypes && cd %t.noalltypes
36
// RUN: 3c -base-dir=%S -dump-stats -dump-intermediate -debug-solver %s
47
// RUN: python -c "import json, glob; [json.load(open(f)) for f in glob.glob('*.json')]"
58

clang/test/3C/statstest.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: rm -rf %t*
2-
// RUN: 3c -dump-stats -base-dir=%S -alltypes -addcr %s -- 2>%t.stderr | FileCheck -match-full-lines %s
3-
// RUN: FileCheck -match-full-lines -check-prefixes="CHECK_STDERR" --input-file %t.stderr %s
2+
// RUN: mkdir %t && cd %t
3+
// RUN: 3c -dump-stats -base-dir=%S -alltypes -addcr %s -- 2>stderr | FileCheck -match-full-lines %s
4+
// RUN: FileCheck -match-full-lines -check-prefixes="CHECK_STDERR" --input-file %t/stderr %s
45

56

67
#include <stdlib.h>

0 commit comments

Comments
 (0)