Skip to content

Commit

Permalink
Copy input files to test directory.
Browse files Browse the repository at this point in the history
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".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196228 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
djasper-gh committed Dec 3, 2013
1 parent f0e1085 commit 5004f51
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/tools/llvm-cov/llvm-cov.test
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5004f51

Please sign in to comment.