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".

llvm-svn: 196228
This commit is contained in:
Daniel Jasper 2013-12-03 07:35:32 +00:00
parent c358229e98
commit 2a2ed02069
1 changed files with 1 additions and 4 deletions

View File

@ -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