This is an archive of the discontinued LLVM Phabricator instance.

[lldb][Windows] Fix ZipFileResolver tests
ClosedPublic

Authored by splhack on Jun 20 2023, 6:16 PM.

Details

Summary

D152759 introduced the Android .zip so file support, but it only considered
POSIX path. The code also runs on Windows, so the path could be Windows path.
Support both patterns on Windows.

Failed tests
https://lab.llvm.org/buildbot/#/builders/219/builds/3674

Diff Detail

Event Timeline

splhack created this revision.Jun 20 2023, 6:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2023, 6:16 PM
splhack requested review of this revision.Jun 20 2023, 6:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2023, 6:16 PM
splhack edited the summary of this revision. (Show Details)Jun 20 2023, 6:30 PM
clayborg accepted this revision.Jun 22 2023, 10:30 AM

Can we test this? I will ok to unblock windows bots.

This revision is now accepted and ready to land.Jun 22 2023, 10:30 AM

Yes, in fact ZipFileResolverTest is the test what is running on Windows, and failing due to POSIX vs Windows path. This diff will fix the tests.

kusmour accepted this revision.Jun 22 2023, 10:37 AM

The fix looks straightforward. And @splhack has verified locally. Accepting

This revision was automatically updated to reflect the committed changes.

verified, Windows buildbot is now green.
https://lab.llvm.org/buildbot/#/builders/219