diff options
author | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-11-20 04:15:05 +0000 |
---|---|---|
committer | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-11-20 04:15:05 +0000 |
commit | d23c759c0fa10b7fb244b4d2911b49b95138a7e1 (patch) | |
tree | 4346b143320207b2cc677a34902d7e0ddc697eb8 /test/tools/llvm-cov | |
parent | 523d929368829b5157748f46f85b4577b7fd6ca1 (diff) | |
download | llvm-d23c759c0fa10b7fb244b4d2911b49b95138a7e1.tar.gz llvm-d23c759c0fa10b7fb244b4d2911b49b95138a7e1.tar.bz2 llvm-d23c759c0fa10b7fb244b4d2911b49b95138a7e1.tar.xz |
llvm-cov: Added file checksum to gcno and gcda files.
Instead of permanently outputting "MVLL" as the file checksum, clang
will create gcno and gcda checksums by hashing the destination block
numbers of every arc. This allows for llvm-cov to check if the two gcov
files are synchronized.
Regenerated the test files so they contain the checksum. Also added
negative test to ensure error when the checksums don't match.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools/llvm-cov')
-rw-r--r-- | test/tools/llvm-cov/Inputs/test.gcda | bin | 824 -> 824 bytes | |||
-rw-r--r-- | test/tools/llvm-cov/Inputs/test.gcno | bin | 3112 -> 3112 bytes | |||
-rw-r--r-- | test/tools/llvm-cov/Inputs/test_checksum_mismatch.gcda | bin | 0 -> 825 bytes | |||
-rw-r--r-- | test/tools/llvm-cov/Inputs/test_read_fail.gcno | bin | 111 -> 72 bytes | |||
-rw-r--r-- | test/tools/llvm-cov/llvm-cov.test | 2 |
5 files changed, 2 insertions, 0 deletions
diff --git a/test/tools/llvm-cov/Inputs/test.gcda b/test/tools/llvm-cov/Inputs/test.gcda Binary files differindex 23d03bdd1f..a62c069c9a 100644 --- a/test/tools/llvm-cov/Inputs/test.gcda +++ b/test/tools/llvm-cov/Inputs/test.gcda diff --git a/test/tools/llvm-cov/Inputs/test.gcno b/test/tools/llvm-cov/Inputs/test.gcno Binary files differindex 6162604e74..218398548e 100644 --- a/test/tools/llvm-cov/Inputs/test.gcno +++ b/test/tools/llvm-cov/Inputs/test.gcno diff --git a/test/tools/llvm-cov/Inputs/test_checksum_mismatch.gcda b/test/tools/llvm-cov/Inputs/test_checksum_mismatch.gcda Binary files differnew file mode 100644 index 0000000000..2fcf33dd21 --- /dev/null +++ b/test/tools/llvm-cov/Inputs/test_checksum_mismatch.gcda diff --git a/test/tools/llvm-cov/Inputs/test_read_fail.gcno b/test/tools/llvm-cov/Inputs/test_read_fail.gcno Binary files differindex 63b5d71e69..bcc20a65ee 100644 --- a/test/tools/llvm-cov/Inputs/test_read_fail.gcno +++ b/test/tools/llvm-cov/Inputs/test_read_fail.gcno diff --git a/test/tools/llvm-cov/llvm-cov.test b/test/tools/llvm-cov/llvm-cov.test index 28738a78d1..d95af9b40f 100644 --- a/test/tools/llvm-cov/llvm-cov.test +++ b/test/tools/llvm-cov/llvm-cov.test @@ -7,4 +7,6 @@ RUN: | diff -aub test.cpp.gcov - RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda +RUN: not llvm-cov -gcno=test.gcno -gcda=test_checksum_mismatch.gcda + XFAIL: powerpc64, s390x |