This is an archive of the discontinued LLVM Phabricator instance.

[lit] Fix unit test discovery for Visual Studio builds.
ClosedPublic

Authored by andrewng on Jul 4 2017, 1:43 AM.

Details

Summary

The Visual Studio build can contain output for multiple configuration types (
e.g. Debug, Release & RelWithDebInfo) within the same build output
directory. Therefore when discovering unit tests, the "build mode" sub directory
containing the appropriate configuration is included in the search. This sub
directory may not always be present, so a test for its existence is required.

Diff Detail

Repository
rL LLVM

Event Timeline

andrewng created this revision.Jul 4 2017, 1:43 AM
andrewng added a subscriber: grimar.
grimar added a comment.Jul 4 2017, 1:48 AM

I can confirm that fixes issue I mentioned in comments for D34855. thanks !

Hi,

This patch fixes a Windows Visual Studio build lit issue introduced by rL306895 (D34855).

Cheers,
Andrew

Is this patch good to land?

Cheers,
Andrew

zturner accepted this revision.Jul 5 2017, 10:48 AM
This revision is now accepted and ready to land.Jul 5 2017, 10:48 AM
dlj accepted this revision.Jul 5 2017, 4:18 PM

Sorry for the delay, and do apologize for the breakage.

This revision was automatically updated to reflect the committed changes.