[llvm] d8c817a - [llvm-dwp][test] Add nocompress.test testing LLVM_ENABLE_ZLIB==0

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 14 18:47:54 PDT 2022


Author: Fangrui Song
Date: 2022-07-14T18:47:48-07:00
New Revision: d8c817a9cdf478b21462101e603b0ad0e91f024a

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

LOG: [llvm-dwp][test] Add nocompress.test testing LLVM_ENABLE_ZLIB==0

Rewrite a prebuilt file removed by D129728.

Added: 
    llvm/test/tools/llvm-dwp/X86/nocompress.test

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-dwp/X86/nocompress.test b/llvm/test/tools/llvm-dwp/X86/nocompress.test
new file mode 100644
index 000000000000..995922f22810
--- /dev/null
+++ b/llvm/test/tools/llvm-dwp/X86/nocompress.test
@@ -0,0 +1,18 @@
+# UNSUPPORTED: zlib
+# RUN: yaml2obj %s -o %t.o
+# RUN: not llvm-dwp %t.o -o /dev/null 2>&1 | FileCheck %s
+
+# CHECK: error: failure while decompressing compressed section: '.debug_{{.*}}.dwo', zlib is not available
+
+--- !ELF
+FileHeader:
+  Class:           ELFCLASS64
+  Data:            ELFDATA2LSB
+  Type:            ET_REL
+  Machine:         EM_X86_64
+Sections:
+  - Name:            .debug_info.dwo
+    Type:            SHT_PROGBITS
+    Flags:           [ SHF_COMPRESSED ]
+    AddressAlign:    0x8
+    Content:         01000000fd7f000056000000000000000100000000000000789c0b626060606100010e462083f1e6eb7f7c0d8b756299188480628c614ccc8c8ccc4c136b5818190381024066051b9c59c20e67167040980c2cacac2c0c00109a0afa


        


More information about the llvm-commits mailing list