[llvm] r196228 - Copy input files to test directory.
Daniel Jasper
djasper at google.com
Mon Dec 2 23:35:32 PST 2013
Author: djasper
Date: Tue Dec 3 01:35:32 2013
New Revision: 196228
URL: http://llvm.org/viewvc/llvm-project?rev=196228&view=rev
Log:
Copy input files to test directory.
With r196184, llvm-cov creates a new file right next to the input file.
However, the Inputs-directory can't simply be assumed to be writable
under all build systems.
Also, this prevents a new source file from showing up in the source tree
if the test aborts before the call to "rm".
Modified:
llvm/trunk/test/tools/llvm-cov/llvm-cov.test
Modified: llvm/trunk/test/tools/llvm-cov/llvm-cov.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-cov/llvm-cov.test?rev=196228&r1=196227&r2=196228&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-cov/llvm-cov.test (original)
+++ llvm/trunk/test/tools/llvm-cov/llvm-cov.test Tue Dec 3 01:35:32 2013
@@ -1,7 +1,4 @@
-RUN: cd %p/Inputs
-# "cd" is unsupported in lit internal runner.
-REQUIRES: shell
-
+RUN: cp %p/Inputs/test.* .
RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda
RUN: diff -aub test.cpp.gcov test.cpp.llcov
RUN: rm test.cpp.llcov
More information about the llvm-commits
mailing list