[llvm-readelf][llvm-readobj][test] - Cleanup test cases for versioning sections.
authorGeorgii Rymar <grimar@accesssoftek.com>
Wed, 27 Nov 2019 15:26:54 +0000 (18:26 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Thu, 28 Nov 2019 07:18:51 +0000 (10:18 +0300)
commitbb7d75ef1df350948a95d875c9746115f6481a2d
treeaae150ccb3fcb5a5048a15cc761b24634023a113
parent1bc5c52afdcbc6832bfcbe89639b6a662b58901a
[llvm-readelf][llvm-readobj][test] - Cleanup test cases for versioning sections.

Currently we have 2 tests for testing versioning sections:
1) elf-versioninfo.test
2) elf-invalid-versioning.test

The first one currently checks how versioning sections are dumped +
how tools dump invalid SHT_GNU_verdef section.

The second despite of its name contains only tests for invalid SHT_GNU_verneed section.

In this patch I`ve renamed elf-invalid-versioning.test->elf-verneed-invalid.test,
and moved a few tests from elf-versioninfo.test to a new elf-verdef-invalid.test.

It will help to maintain these and a new tests for broken versioning sections.

Differential revision:
llvm/test/tools/llvm-readobj/elf-verdef-invalid.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/elf-verneed-invalid.test [moved from llvm/test/tools/llvm-readobj/elf-invalid-versioning.test with 98% similarity]
llvm/test/tools/llvm-readobj/elf-versioninfo.test