diff options
author | Vedant Kumar <vsk@apple.com> | 2019-12-04 10:35:14 -0800 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2019-12-04 10:35:14 -0800 |
commit | f208b70fbc4dee78067b3c5bd6cb92aa3ba58a1e (patch) | |
tree | c57e6e3d339fbde7061c31a19bb9613ef131be50 /llvm/unittests/ProfileData/CoverageMappingTest.cpp | |
parent | 9b15873c92832b06f41be1e1047ea5033411ee0f (diff) | |
download | llvm-f208b70fbc4dee78067b3c5bd6cb92aa3ba58a1e.zip llvm-f208b70fbc4dee78067b3c5bd6cb92aa3ba58a1e.tar.gz llvm-f208b70fbc4dee78067b3c5bd6cb92aa3ba58a1e.tar.bz2 |
Revert "[Coverage] Revise format to reduce binary size"
This reverts commit e18531595bba495946aa52c0a16b9f9238cff8bc.
On Windows, there is an error:
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/54963/steps/stage%201%20check/logs/stdio
error: C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\profile\Profile-x86_64\Output\instrprof-merging.cpp.tmp.v1.o: Failed to load coverage: Malformed coverage data
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 |