This is an archive of the discontinued LLVM Phabricator instance.

Add more stringent tests for the resource section of executables.
ClosedPublic

Authored by ecbeckmann on Jun 26 2017, 9:08 PM.

Details

Summary

The testing on the resource section of executables produced by lld has been very lax, and allowed a major bug to go unnoticed when we switched from shelling out to cvtres.exe to using llvm's own library. These additional tests should cover all the major failure points.

Diff Detail

Repository
rL LLVM

Event Timeline

ecbeckmann created this revision.Jun 26 2017, 9:08 PM
ruiu added inline comments.Jun 27 2017, 11:14 AM
lld/test/COFF/Inputs/test_resource.rc
51 ↗(On Diff #104084)

Fix

lld/test/COFF/combinedresources.test
1 ↗(On Diff #104084)

Rename this file to combined-resources.test as separating words using hyphens is a local convention in this directory.

4 ↗(On Diff #104084)

Please rename test_resources.res combined-resources.test as using the same name is a local convention too.

22 ↗(On Diff #104084)

Please fix.

ecbeckmann marked 4 inline comments as done.

Renamed files to match directory convention.

ruiu accepted this revision.Jun 27 2017, 1:54 PM

LGTM with this fix.

lld/test/COFF/Inputs/combined-resources.rc
12–13 ↗(On Diff #104264)

Please rename them combined-resources-{x,y}.bmp or something so that we can easily keep track of which files are being used by which tests.

This revision is now accepted and ready to land.Jun 27 2017, 1:54 PM
ecbeckmann marked an inline comment as done.

Renamed resource data files to match test name convention.

This revision was automatically updated to reflect the committed changes.