Skip to content

Commit

Permalink
Adding test logic to verify gcovr#27
Browse files Browse the repository at this point in the history
Most gcovr tests use the option '-r .' or '-r ..'.  This
test uses an explicit path, which will illustrates the error
fixed by gcovr#27.
  • Loading branch information
whart222 committed Jul 3, 2014
1 parent 3159e4e commit fd7d1b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gcovr/tests/nested/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ all:

run: txt xml html

# NOTE: The explicit path used with '-r' here is used to test some logic in the
# gcovr script. The coverage.txt output is the same, but the
# internal logic used by gcovr differs in a subtle manner when using an
# explicit path.
txt:
./subdir/testcase
cd ./subdir; ../../../../scripts/gcovr -r .. -d -o ../coverage.txt
cd ./subdir; ../../../../scripts/gcovr -r `pwd`/.. -d -o ../coverage.txt

xml:
./subdir/testcase
Expand Down

0 comments on commit fd7d1b8

Please sign in to comment.