This is an archive of the discontinued LLVM Phabricator instance.

Revert "[lit] Remove dead code not referenced in the LLVM SVN repo."
ClosedPublic

Authored by modocache on Jul 25 2017, 9:16 PM.

Details

Summary

This reverts rL306623, which removed FileBasedTest, an abstract base class,
but did not also remove the usages of that class in the lit unit tests.
The revert fixes four test failures in the lit unit test suite.

Test plan:
As per the instructions in utils/lit/README.txt, run the lit unit
test suite:

utils/lit/lit.py \
    --path /path/to/your/llvm/build/bin \
    utils/lit/tests

Verify that the following tests fail before applying this patch, and
pass once the patch is applied:

lit :: test-data.py
lit :: test-output.py
lit :: xunit-output.py

In addition, run check-llvm to make sure the existing LLVM test suite
executes normally.

Event Timeline

modocache created this revision.Jul 25 2017, 9:16 PM
mgorny accepted this revision.Jul 26 2017, 3:53 AM

LGTM. I've confirmed that it fixes lit test suite, and no additional tests from the LLVM test suite fails (except the one that failed before applying the patch). I haven't tested other LLVM projects though.

This revision is now accepted and ready to land.Jul 26 2017, 3:53 AM
modocache closed this revision.Jul 26 2017, 8:00 AM
dlj edited edge metadata.Jul 27 2017, 3:18 PM

So it looks like I didn't catch these because of https://reviews.llvm.org/rL257268.

It looks to me like lit is back into the list of tests after r309310, so this sort of error should be easy to catch in the future.