[lldb] Fix SBFileSpec.fullpath for Windows
authorDave Lee <davelee.com@gmail.com>
Fri, 11 Nov 2022 22:32:04 +0000 (14:32 -0800)
committerDave Lee <davelee.com@gmail.com>
Sat, 12 Nov 2022 00:07:38 +0000 (16:07 -0800)
commit5223366416fbde8ac5d53c586c985bffac9cb168
tree4eb42042613cd8010ddc457ba7aac8dede7526aa
parent4d25761b076d19c237890ad7b7331d01bd3a84b6
[lldb] Fix SBFileSpec.fullpath for Windows

Fix `fullpath` to not assume a `/` path separator. This was discovered when
D133130 failed on Windows. Use `os.path.join()` to fix the issue.

Reviewed By: mib

Differential Revision: https://reviews.llvm.org/D133366
lldb/bindings/interface/SBFileSpec.i
lldb/test/API/python_api/file_spec/TestFileSpecAPI.py [new file with mode: 0644]