This is an archive of the discontinued LLVM Phabricator instance.

[unittest][DebugInfo/DWARF] Do not report skipped tests as passed
ClosedPublic

Authored by ikudrin on Dec 21 2021, 7:07 AM.

Details

Summary

This is similar to what we have already done to some other tests. See D102643, D102710, D102754.

Diff Detail

Event Timeline

ikudrin updated this revision to Diff 395671.Dec 21 2021, 7:08 AM
dblaikie accepted this revision.Dec 21 2021, 9:12 AM

Looks like an acceptable incremental improvement, but perhaps it could be improved further if the generator be setup in the SetUp function and failing that function could implicitly skip tests covered by it, and similar for other tests/setup operations like initializing the MachineRegisterInfo, etc?

This revision is now accepted and ready to land.Dec 21 2021, 9:12 AM

Looks like an acceptable incremental improvement, but perhaps it could be improved further if the generator be setup in the SetUp function and failing that function could implicitly skip tests covered by it, and similar for other tests/setup operations like initializing the MachineRegisterInfo, etc?

TBH, I do not see much profit in that change. Only DWARFExpressionCopyBytesTest and DWARFExpressionCompactPrinterTest can be easily updated, but they already have one common test method each, so moving the check into a setup method would not be a visible improvement. Other places pass custom parameters to the initializer, so reorganizing them requires much more effort, but the outcome would be elusive.

This revision was landed with ongoing or failed builds.Dec 22 2021, 3:54 AM
This revision was automatically updated to reflect the committed changes.