mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
9e73c842ad
Similar to gcov, llvm-cov will now print out the block count at the end of each block. Multiple blocks can end on the same line. One computational difference is by using -a, llvm-cov will no longer simply add the block counts together to form a line count. Instead, it will take the maximum of the block counts on that line. This has a similar effect to what gcov does, but generates more correct counts in certain scenarios. Also updated tests. llvm-svn: 196856
23 lines
663 B
Plaintext
23 lines
663 B
Plaintext
# "cd" and globbing are unsupported in lit internal runner.
|
|
REQUIRES: shell
|
|
RUN: rm -rf %t
|
|
RUN: mkdir %t
|
|
RUN: cd %t
|
|
RUN: cp %p/Inputs/test* .
|
|
|
|
RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda
|
|
RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov
|
|
RUN: diff -aub test_no_options.h.gcov test.h.gcov
|
|
|
|
RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a
|
|
RUN: diff -aub test_-a.cpp.gcov test.cpp.gcov
|
|
RUN: diff -aub test_-a.h.gcov test.h.gcov
|
|
|
|
RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda
|
|
|
|
RUN: not llvm-cov -gcno=test.gcno -gcda=test_file_checksum_fail.gcda
|
|
|
|
RUN: not llvm-cov -gcno=test.gcno -gcda=test_func_checksum_fail.gcda
|
|
|
|
XFAIL: powerpc64, s390x, mips
|