[llvm] 8032727 - [DWARFYAML][MachO] Remove endianness related tests.
Xing GUO via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 06:44:27 PDT 2020
Author: Xing GUO
Date: 2020-06-30T21:48:50+08:00
New Revision: 8032727a43ca678b0b923abaa04638f500a060d6
URL: https://github.com/llvm/llvm-project/commit/8032727a43ca678b0b923abaa04638f500a060d6
DIFF: https://github.com/llvm/llvm-project/commit/8032727a43ca678b0b923abaa04638f500a060d6.diff
LOG: [DWARFYAML][MachO] Remove endianness related tests.
fe08ab542bd6328a7906e38ae473cf655eb6a228 makes build bots unhappy
(http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/33624/steps/ninja%20check%201/logs/FAIL%3A%20LLVM%3A%3ADWARF-debug_info.yaml).
This patch removes failed tests.
Added:
Modified:
llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml
llvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml
Removed:
################################################################################
diff --git a/llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml b/llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml
index 8c500f4c560c..98af99b86e0a 100644
--- a/llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml
+++ b/llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml
@@ -580,20 +580,8 @@ DWARF:
## Test DWARF32 unit header.
-# RUN: yaml2obj --docnum=2 -DFORMAT=DWARF32 %s -o %t2.dwarf32.o
-# RUN: llvm-readobj --hex-dump=__debug_info %t2.dwarf32.o | \
-# RUN: FileCheck %s --check-prefix=DWARF32-HEADER
-
-# DWARF32-HEADER: Hex dump of section '__debug_info':
-# DWARF32-HEADER-NEXT: 0x00000000 0c000000 04000000 00000801 34120000 ............4...
-## ^------- unit_length (4-byte)
-## ^--- version (2-byte)
-## ^-------- debug_abbrev_offset (4-byte)
-## ^- address_size (1-byte)
-## ^- abbrev code (ULEB128)
-## ^------- value, Form: DW_FORM_addr (4-byte)
-
-# RUN: obj2yaml %t2.dwarf32.o | FileCheck %s --check-prefix=DWARF32-YAML
+# RUN: yaml2obj --docnum=2 -DFORMAT=DWARF32 %s | \
+# RUN: obj2yaml | FileCheck %s --check-prefix=DWARF32-YAML
# DWARF32-YAML: debug_info:
# DWARF32-YAML-NEXT: - Length: 12
@@ -673,22 +661,8 @@ DWARF:
## Test DWARF64 unit header.
-# RUN: yaml2obj --docnum=2 -DFORMAT=DWARF64 %s -o %t2.dwarf64.o
-# RUN: llvm-readobj --hex-dump=__debug_info %t2.dwarf64.o | \
-# RUN: FileCheck %s --check-prefix=DWARF64-HEADER
-
-# DWARF64-HEADER: Hex dump of section '__debug_info':
-# DWARF64-HEADER-NEXT: 0x00000000 ffffffff 0c000000 00000000 04000000 ................
-## ^------------------------- unit_length (12-byte)
-## ^--- version (2-byte)
-## ^--- debug_abbrev_offset (8-byte)
-# DWARF64-HEADER-NEXT: 0x00000010 00000000 00000801 34120000 00000000 ........4.......
-## -------------
-## ^- address_size (1-byte)
-## ^- abbrev code (ULEB128)
-## ^---------------- value, Form: DW_FORM_addr (8-byte)
-
-# RUN: obj2yaml %t2.dwarf64.o | FileCheck %s --check-prefix=DWARF64-YAML
+# RUN: yaml2obj --docnum=2 -DFORMAT=DWARF64 %s | \
+# RUN: obj2yaml | FileCheck %s --check-prefix=DWARF64-YAML
# DWARF64-YAML: debug_info:
# DWARF64-YAML-NEXT: - Format: DWARF64
diff --git a/llvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml b/llvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml
index 50dfb0c586d6..1ed156a63599 100644
--- a/llvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml
+++ b/llvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml
@@ -581,23 +581,8 @@ DWARF:
## Test DWARF32 unit header.
-# RUN: yaml2obj --docnum=2 -DFORMAT=DWARF32 -DLENGTH=12 %s -o %t2.dwarf32.o
-# RUN: llvm-readobj --hex-dump=__debug_info %t2.dwarf32.o | \
-# RUN: FileCheck %s --check-prefix=DWARF32-HEADER
-
-# DWARF32-HEADER: Hex dump of section '__debug_info':
-# DWARF32-HEADER-NEXT: 0x00000000 0c000000 05000108 00000000 01341200 .............4..
-## ^------- unit_header (4-byte)
-## ^--- version (2-byte)
-## ^- unit_type (1-byte)
-## ^- address_size (1-byte)
-## ^------- deubug_abbrev_offset (4-byte)
-## ^- abbrev code (ULEB128)
-## ^----- value, Form: DW_AT_addr (8-byte)
-# DWARF32-HEADER-NEXT: 0x00000010 00000000 00 .....
-## -----------
-
-# RUN: obj2yaml %t2.dwarf32.o | FileCheck %s --check-prefix=DWARF32-YAML
+# RUN: yaml2obj --docnum=2 -DFORMAT=DWARF32 -DLENGTH=12 %s | \
+# RUN: obj2yaml | FileCheck %s --check-prefix=DWARF32-YAML
# DWARF32-YAML: debug_info:
# DWARF32-YAML-NEXT: - Length: 12
@@ -679,24 +664,8 @@ DWARF:
## Test DWARF64 unit header.
-# RUN: yaml2obj --docnum=2 -DFORMAT=DWARF64 -DLENGTH=20 %s -o %t2.dwarf64.o
-# RUN: llvm-readobj --hex-dump=__debug_info %t2.dwarf64.o | \
-# RUN: FileCheck %s --check-prefix=DWARF64-HEADER
-
-# DWARF64-HEADER: Hex dump of section '__debug_info':
-# DWARF64-HEADER-NEXT: 0x00000000 ffffffff 14000000 00000000 05000108 ................
-## ^------------------------- unit_length (12-byte)
-## ^--- version (2-byte)
-## ^- unit_type (1-byte)
-## ^- address_size (1-byte)
-# DWARF64-HEADER-NEXT: 0x00000010 00000000 00000000 01341200 00000000 .........4......
-## ^---------------- debug_abbrev_offset (8-byte)
-## ^- abbrev code (ULEB128)
-## ^-------------- value, Form: DW_AT_addr (8-byte)
-# DWARF64-HEADER-NEXT: 0x00000020 00 .
-## --
-
-# RUN: obj2yaml %t2.dwarf64.o | FileCheck %s --check-prefix=DWARF64-YAML
+# RUN: yaml2obj --docnum=2 -DFORMAT=DWARF64 -DLENGTH=20 %s | \
+# RUN: obj2yaml | FileCheck %s --check-prefix=DWARF64-YAML
# DWARF64-YAML: debug_info:
# DWARF64-YAML-NEXT: - Format: DWARF64
More information about the llvm-commits
mailing list