[obj2yaml][test] - Improve and fix section-group.yaml test.
authorGeorgii Rymar <grimar@accesssoftek.com>
Wed, 23 Dec 2020 10:40:58 +0000 (13:40 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Mon, 11 Jan 2021 12:24:21 +0000 (15:24 +0300)
commita5b484c4d41a7452b590a2c1c98dc31f43d3dc1a
tree2bbc04fcd7dfa6be237595733f85e1efdf48607b
parenta94497a34290bea077398c83d3031179c08ec2e7
[obj2yaml][test] - Improve and fix section-group.yaml test.

It has multiple issues fixed by this patch:
1) It shouldn't test how llvm-readelf/yaml2obj works.
2) It should use "-NEXT" prefix for check lines.
3) It can use YAML macros, that allows to use a single YAML.
4) It should probably test the case when a group member is a null section.

Differential revision: https://reviews.llvm.org/D93753
llvm/test/tools/obj2yaml/ELF/section-group.yaml