diff options
author | Vedant Kumar <vsk@apple.com> | 2020-02-28 18:03:15 -0800 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2020-02-28 18:03:15 -0800 |
commit | 3388871714d3b718b823e76499b0c03877105e5d (patch) | |
tree | c4c6ce29637fa2564cd604a44247d149eff40330 /llvm/unittests/ProfileData/CoverageMappingTest.cpp | |
parent | 7300c338e5f5d1cb08caf7fa9e4b172b88d8e58e (diff) | |
download | llvm-3388871714d3b718b823e76499b0c03877105e5d.zip llvm-3388871714d3b718b823e76499b0c03877105e5d.tar.gz llvm-3388871714d3b718b823e76499b0c03877105e5d.tar.bz2 |
Revert "[Coverage] Revise format to reduce binary size"
This reverts commit 99317124e1c772e9a9de41a0cd56e1db049b4ea4. This is
still busted on Windows:
http://lab.llvm.org:8011/builders/lld-x86_64-win7/builds/40873
The llvm-cov tests report 'error: Could not load coverage information'.
Diffstat (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp')
-rw-r--r-- | llvm/unittests/ProfileData/CoverageMappingTest.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp index 4854b7f..82e7574 100644 --- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp +++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp @@ -895,29 +895,4 @@ INSTANTIATE_TEST_CASE_P(ParameterizedCovMapTest, CoverageMappingTest, std::pair<bool, bool>({true, false}), std::pair<bool, bool>({true, true})),); -TEST(CoverageMappingTest, filename_roundtrip) { - std::vector<StringRef> Paths({"a", "b", "c", "d", "e"}); - - for (bool Compress : {false, true}) { - std::string EncodedFilenames; - { - raw_string_ostream OS(EncodedFilenames); - CoverageFilenamesSectionWriter Writer(Paths); - Writer.write(OS, Compress); - } - - std::vector<StringRef> ReadFilenames; - RawCoverageFilenamesReader Reader(EncodedFilenames, ReadFilenames); - BinaryCoverageReader::DecompressedData Decompressed; - EXPECT_THAT_ERROR(Reader.read(CovMapVersion::CurrentVersion, Decompressed), - Succeeded()); - if (!Compress) - ASSERT_EQ(Decompressed.size(), 0U); - - ASSERT_EQ(ReadFilenames.size(), Paths.size()); - for (unsigned I = 0; I < Paths.size(); ++I) - ASSERT_TRUE(ReadFilenames[I] == Paths[I]); - } -} - } // end anonymous namespace |