r371897 - Fix test to use %t for newly created files.
Tim Shen via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 13 14:06:47 PDT 2019
Author: timshen
Date: Fri Sep 13 14:06:47 2019
New Revision: 371897
URL: http://llvm.org/viewvc/llvm-project?rev=371897&view=rev
Log:
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).
Modified:
cfe/trunk/test/Driver/metadata-with-dots.c
Modified: cfe/trunk/test/Driver/metadata-with-dots.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/metadata-with-dots.c?rev=371897&r1=371896&r2=371897&view=diff
==============================================================================
--- cfe/trunk/test/Driver/metadata-with-dots.c (original)
+++ cfe/trunk/test/Driver/metadata-with-dots.c Fri Sep 13 14:06:47 2019
@@ -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;
More information about the cfe-commits
mailing list