Fix fullpath to not assume a / path separator. This was discovered when
D133130 failed on Windows. Use os.path.join() to fix the issue.
Details
- Reviewers
mib - Commits
- rG5223366416fb: [lldb] Fix SBFileSpec.fullpath for Windows
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
will add a test before committing, there was no immediately obvious place for a test.
This broke the Windows lldb bot: https://lab.llvm.org/buildbot/#/builders/83/builds/25854
@stella.stamenova I realized that test has more paths that need fixing. The rest are fixed in rG760c75fe2d25e06644271cb1338f8b0f8d9abc70.
Ugh, the test that is failing uses windows paths but runs on both windows and non-windows machines. I will revert this and the two fix commits.
You should be able to test for the operating system and set the paths accordingly in the test.
The real problem here is that the __get_fullpath__ implementation does not use the path style information from within the FileSpec object. Hardcoding it to use the host os path style (instead of posix style) just changes the set of bugs.