From 8032727a43ca678b0b923abaa04638f500a060d6 Mon Sep 17 00:00:00 2001 From: Xing GUO Date: Tue, 30 Jun 2020 21:14:28 +0800 Subject: [PATCH] [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. --- llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml | 34 +++----------------- llvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml | 39 +++-------------------- 2 files changed, 8 insertions(+), 65 deletions(-) diff --git a/llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml b/llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml index 8c500f4..98af99b 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 50dfb0c..1ed156a 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 -- 2.7.4