From f208b70fbc4dee78067b3c5bd6cb92aa3ba58a1e Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Wed, 4 Dec 2019 10:35:14 -0800 Subject: 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 --- llvm/unittests/ProfileData/CoverageMappingTest.cpp | 25 ---------------------- 1 file changed, 25 deletions(-) (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp') 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({true, false}), std::pair({true, true})),); -TEST(CoverageMappingTest, filename_roundtrip) { - std::vector 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 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 -- cgit v1.1