Skip to content

Commit 75874ca

Browse files
author
George Rimar
committed
[test/Object, obj2yaml] - Move test cases from test/Object and cleanup.
test/Object is not correct place to have tests that check obj2yaml functionality, because we have test/tools/obj2yaml folder for that. In this patch I merged a few test cases with their YAMLs from Inputs folder, converted one of binary inputs and moved them to tools/obj2yaml folder. There are still another tests that might need the same, so it is initial step. Differential revision: https://reviews.llvm.org/D64555 llvm-svn: 365891
1 parent aca476b commit 75874ca

14 files changed

+223
-189
lines changed

llvm/test/Object/Inputs/COFF/long-file-symbol.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.
-624 Bytes
Binary file not shown.

llvm/test/Object/obj2yaml-coff-long-file-symbol.test

Lines changed: 0 additions & 3 deletions
This file was deleted.

llvm/test/Object/obj2yaml-coff-long-section-name.test

Lines changed: 0 additions & 3 deletions
This file was deleted.

llvm/test/Object/obj2yaml-coff-section-aux-symbol.test

Lines changed: 0 additions & 96 deletions
This file was deleted.

llvm/test/Object/obj2yaml-coff-weak-external.test

Lines changed: 0 additions & 3 deletions
This file was deleted.

llvm/test/Object/obj2yaml-invalid-reloc.test

Lines changed: 0 additions & 39 deletions
This file was deleted.

llvm/test/Object/obj2yaml-sectiongroup.test

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# RUN: yaml2obj %s | obj2yaml | FileCheck %s --check-prefix COFF-I386
2+
3+
# COFF-I386: File: filename_with_22_chars
4+
5+
--- !COFF
6+
header:
7+
Machine: IMAGE_FILE_MACHINE_AMD64
8+
Characteristics: [ IMAGE_FILE_RELOCS_STRIPPED, IMAGE_FILE_LINE_NUMS_STRIPPED ]
9+
sections:
10+
symbols:
11+
- Name: .file
12+
Value: 0
13+
SectionNumber: 65534
14+
SimpleType: IMAGE_SYM_TYPE_NULL
15+
ComplexType: IMAGE_SYM_DTYPE_NULL
16+
StorageClass: IMAGE_SYM_CLASS_FILE
17+
File: filename_with_22_chars
18+
...
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
# RUN: yaml2obj %s | obj2yaml | FileCheck %s --check-prefix COFF-I386
2+
3+
# COFF-I386: Name: .long_section_name
4+
15
--- !COFF
26
header:
37
Machine: IMAGE_FILE_MACHINE_I386
48
Characteristics: [ IMAGE_FILE_RELOCS_STRIPPED, IMAGE_FILE_LINE_NUMS_STRIPPED, IMAGE_FILE_LOCAL_SYMS_STRIPPED, IMAGE_FILE_32BIT_MACHINE ]
59
sections:
610
- Name: .long_section_name
711
Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
8-
Alignment: 1
9-
SectionData: ''
1012
symbols:
1113
...

0 commit comments

Comments
 (0)