Skip to content

Commit fc637d0

Browse files
committed
Fix test to use %t for newly created files.
This is both for consistency with other `mkdir`s in tests, and fixing permission issues with the non-temporary cwd during testing (they are not always writable). llvm-svn: 371897
1 parent 2f9b2eb commit fc637d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang/test/Driver/metadata-with-dots.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: shell
2-
// RUN: mkdir -p out.dir
3-
// RUN: cat %s > out.dir/test.c
4-
// RUN: %clang -E -MMD %s -o out.dir/test
2+
// RUN: mkdir -p %t/out.dir
3+
// RUN: cat %s > %t/out.dir/test.c
4+
// RUN: %clang -E -MMD %s -o %t/out.dir/test
55
// RUN: test ! -f %out.d
6-
// RUN: test -f out.dir/test.d
7-
// RUN: rm -rf out.dir/test.d out.dir/ out.d
6+
// RUN: test -f %t/out.dir/test.d
7+
// RUN: rm -rf %t/out.dir/test.d %t/out.dir/ out.d
88
int main (void)
99
{
1010
return 0;

0 commit comments

Comments
 (0)