Skip to content

Commit

Permalink
[NFC][test] Improve ecsymbols.test
Browse files Browse the repository at this point in the history
* The yaml input is inlined into the test file.
* Unnecessary members and fields are removed.

Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D127235
  • Loading branch information
pzhengqc committed Jun 7, 2022
1 parent 28c078e commit 1b2c8b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 37 deletions.
36 changes: 0 additions & 36 deletions llvm/test/tools/llvm-lib/Inputs/ecsymbols.yaml

This file was deleted.

12 changes: 11 additions & 1 deletion llvm/test/tools/llvm-lib/ecsymbols.test
@@ -1,7 +1,17 @@
# Check that llvm-lib can list the members of an archive which contains the
# special member /<ECSYMBOLS>/.

# RUN: yaml2obj %S/Inputs/ecsymbols.yaml -o %t.lib
# RUN: yaml2obj %s -o %t.lib
# RUN: llvm-lib /list %t.lib | FileCheck %s

# CHECK: /<ECSYMBOLS>/

--- !Arch
Members:
- Name: '/'
Size: '0'
- Name: '/'
Size: '0'
- Name: '/<ECSYMBOLS>/'
Size: '0'
...

0 comments on commit 1b2c8b9

Please sign in to comment.