[llvm] b8e4d1b - [test] Remove zlib-gnu tests

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 14 16:29:04 PDT 2022


Author: Fangrui Song
Date: 2022-07-14T16:28:57-07:00
New Revision: b8e4d1b490604fb6784c4c77ae7b583be44abec5

URL: https://github.com/llvm/llvm-project/commit/b8e4d1b490604fb6784c4c77ae7b583be44abec5
DIFF: https://github.com/llvm/llvm-project/commit/b8e4d1b490604fb6784c4c77ae7b583be44abec5.diff

LOG: [test] Remove zlib-gnu tests

Added: 
    

Modified: 
    llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.o.elf-x86-64
    llvm/test/DebugInfo/dwarfdump-zlib.test
    llvm/test/DebugInfo/symbolize-zlib.test
    llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp

Removed: 
    llvm/test/DebugInfo/Inputs/dwarfdump-test-zlibgnu.elf-x86-64


################################################################################
diff  --git a/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.o.elf-x86-64 b/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.o.elf-x86-64
index 55f5cb0d157c..8274ff8b5abf 100644
Binary files a/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.o.elf-x86-64 and b/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.o.elf-x86-64 
diff er

diff  --git a/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 b/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlibgnu.elf-x86-64
deleted file mode 100644
index 0ad7a3d8511d..000000000000
Binary files a/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 and /dev/null 
diff er

diff  --git a/llvm/test/DebugInfo/dwarfdump-zlib.test b/llvm/test/DebugInfo/dwarfdump-zlib.test
index 2fa904d543ae..f2718e78fb71 100644
--- a/llvm/test/DebugInfo/dwarfdump-zlib.test
+++ b/llvm/test/DebugInfo/dwarfdump-zlib.test
@@ -2,7 +2,6 @@ REQUIRES: zlib
 
 RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-test-zlib.elf-x86-64 | FileCheck %s
 RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-test-zlib.o.elf-x86-64 | FileCheck %s
-RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 | FileCheck %s
 
 CHECK: .debug_abbrev contents
 

diff  --git a/llvm/test/DebugInfo/symbolize-zlib.test b/llvm/test/DebugInfo/symbolize-zlib.test
index a02361da8733..d53cfc2ab59f 100644
--- a/llvm/test/DebugInfo/symbolize-zlib.test
+++ b/llvm/test/DebugInfo/symbolize-zlib.test
@@ -1,7 +1,6 @@
 REQUIRES: zlib
 
 RUN: llvm-symbolizer --obj=%p/Inputs/dwarfdump-test-zlib.elf-x86-64 0x4005e9 | FileCheck %s
-RUN: llvm-symbolizer --obj=%p/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 0x4005e9 | FileCheck %s
 
 CHECK: main
 CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test-zlib.cc:16

diff  --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
index ee9204963c53..d0db3fed0552 100644
--- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
@@ -1948,40 +1948,6 @@ TEST(DWARFDebugInfo, TestImplicitConstAbbrevs) {
   EXPECT_EQ(DIEs.find(Val2)->second, AbbrevPtrVal2);
 }
 
-TEST(DWARFDebugInfo, TestErrorReporting) {
-  Triple Triple("x86_64-pc-linux");
-  if (!isConfigurationSupported(Triple))
-    GTEST_SKIP();
-
-  auto ExpectedDG = dwarfgen::Generator::create(Triple, 4 /*DwarfVersion*/);
-  ASSERT_THAT_EXPECTED(ExpectedDG, Succeeded());
-  dwarfgen::Generator *DG = ExpectedDG.get().get();
-  AsmPrinter *AP = DG->getAsmPrinter();
-  MCContext *MC = DG->getMCContext();
-
-  // Emit two compressed sections with broken headers.
-  AP->OutStreamer->switchSection(
-      MC->getELFSection(".zdebug_foo", 0 /*Type*/, 0 /*Flags*/));
-  AP->OutStreamer->emitBytes("0");
-  AP->OutStreamer->switchSection(
-      MC->getELFSection(".zdebug_bar", 0 /*Type*/, 0 /*Flags*/));
-  AP->OutStreamer->emitBytes("0");
-
-  MemoryBufferRef FileBuffer(DG->generate(), "dwarf");
-  auto Obj = object::ObjectFile::createObjectFile(FileBuffer);
-  EXPECT_TRUE((bool)Obj);
-
-  // DWARFContext parses whole file and finds the two errors we expect.
-  int Errors = 0;
-  std::unique_ptr<DWARFContext> Ctx1 = DWARFContext::create(
-      **Obj, DWARFContext::ProcessDebugRelocations::Process, nullptr, "",
-      [&](Error E) {
-        ++Errors;
-        consumeError(std::move(E));
-      });
-  EXPECT_TRUE(Errors == 2);
-}
-
 TEST(DWARFDebugInfo, TestDWARFDieRangeInfoContains) {
   DWARFVerifier::DieRangeInfo Empty;
   ASSERT_TRUE(Empty.contains(Empty));


        


More information about the llvm-commits mailing list