From 7343eabc6b4054b7ca2f4455361d5f891f482626 Mon Sep 17 00:00:00 2001 From: Tim Shen Date: Fri, 13 Sep 2019 21:06:47 +0000 Subject: [PATCH] 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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371897 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/metadata-with-dots.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/Driver/metadata-with-dots.c b/test/Driver/metadata-with-dots.c index 371b48bd2cc6..6058b91554df 100644 --- a/test/Driver/metadata-with-dots.c +++ b/test/Driver/metadata-with-dots.c @@ -1,10 +1,10 @@ // REQUIRES: shell -// RUN: mkdir -p out.dir -// RUN: cat %s > out.dir/test.c -// RUN: %clang -E -MMD %s -o out.dir/test +// RUN: mkdir -p %t/out.dir +// RUN: cat %s > %t/out.dir/test.c +// RUN: %clang -E -MMD %s -o %t/out.dir/test // RUN: test ! -f %out.d -// RUN: test -f out.dir/test.d -// RUN: rm -rf out.dir/test.d out.dir/ out.d +// RUN: test -f %t/out.dir/test.d +// RUN: rm -rf %t/out.dir/test.d %t/out.dir/ out.d int main (void) { return 0;