This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readelf][llvm-readobj][test] - Cleanup test cases for versioning sections.
ClosedPublic

Authored by grimar on Nov 27 2019, 7:29 AM.

Details

Summary

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.

Diff Detail

Event Timeline

grimar created this revision.Nov 27 2019, 7:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 27 2019, 7:29 AM
MaskRay accepted this revision.Nov 27 2019, 10:25 AM
This revision is now accepted and ready to land.Nov 27 2019, 10:25 AM