Skip to content

Commit 5c268f0

Browse files
committed
crash-report-modules.m: Shorten path length to make Windows bot happy
llvm-svn: 334574
1 parent 744c48a commit 5c268f0

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

clang/test/Driver/crash-report-modules.m

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
// RUN: rm -rf %t
2-
// RUN: mkdir -p %t/i %t/m %t
1+
// FIXME: Instead of %T/crmdir, it would be nice to just use %t, but the
2+
// filename ran into path length limits for the rm command on some Windows
3+
// bots.
4+
// RUN: rm -rf %T/crmdir
5+
// RUN: mkdir -p %T/crmdir/i %T/crmdir/m
36

4-
// RUN: env FORCE_CLANG_DIAGNOSTICS_CRASH= TMPDIR=%t TEMP=%t TMP=%t \
5-
// RUN: not %clang -fsyntax-only %s -I %S/Inputs/module -isysroot %/t/i/ \
6-
// RUN: -fmodules -fmodules-cache-path=%t/m/ -DFOO=BAR 2>&1 | FileCheck %s
7+
// RUN: env FORCE_CLANG_DIAGNOSTICS_CRASH= TMPDIR=%T/crmdir TEMP=%T/crmdir TMP=%T/crmdir \
8+
// RUN: not %clang -fsyntax-only %s -I %S/Inputs/module -isysroot %/t/i/ \
9+
// RUN: -fmodules -fmodules-cache-path=%T/crmdir/m/ -DFOO=BAR 2>&1 | FileCheck %s
710

8-
// RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-report-*.m
9-
// RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-report-*.sh
11+
// RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %T/crmdir/crash-report-*.m
12+
// RUN: FileCheck --check-prefix=CHECKSH %s -input-file %T/crmdir/crash-report-*.sh
1013
// REQUIRES: crash-recovery
1114

1215
@import simple;

0 commit comments

Comments
 (0)