-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Test LLDB pretty-printers on Windows #7399
Conversation
b3a364e
to
e5592c5
Compare
// lldbg-check:[...]xs = size=4 { [0] = { 0 = 1 1 = 10 } [1] = { 0 = 2 1 = 20 } [2] = { 0 = 3 1 = 30 } [3] = { 0 = 4 1 = 40 } } | ||
// lldbr-check:[...]xs = size=4 { [0] = { 0 = 1 1 = 10 } [1] = { 0 = 2 1 = 20 } [2] = { 0 = 3 1 = 30 } [3] = { 0 = 4 1 = 40 } } | ||
// lldb-command:print ys | ||
// lldbg-check:[...]ys = size=4 { [0] = 1 [1] = 2 [2] = 3 [3] = 4 } | ||
// lldbr-check:[...]ys = size=4 { [0] = 1 [1] = 2 [2] = 3 [3] = 4 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I understand correctly that these changes skip hash_map test for Windows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and now also for macOS (since we use LLDB from Xcode distribution)
@ortem ping |
5e00cf7
to
a327f46
Compare
@Undin I realized that Previously,
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
7399: CI: Test LLDB pretty-printers on Windows r=Undin a=ortem This PR enables testing of LLDB pretty-printers on Windows (with bundled MSVC LLDB) on CI. Besides CI, `runPrettyPrintersTests` task can be executed on Windows locally to check the pretty-printers. But keep in mind that `mklink` command used in `runPrettyPrintersTests` task may require Administrator privileges on Windows 10 (in contrast to Windows Server used by GitHub Actions). To deal with this, consider enabling [Developer Mode](https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development). changelog: Test LLDB pretty-printers on Windows Co-authored-by: Artem Mukhin <ortem00@gmail.com>
Build failed: |
@ortem Could you check why pretty printer tests fail, please? |
* Each `Settings_%os%.toml` file can now contain separate sections to configure tests for GDB and LLDB * `native_rust` flag is no longer used for GDB because any GDB since version 7.12 provides native Rust support
a327f46
to
039c5e0
Compare
Some checks are temporary disabled for MSVC LLDB. Pretty-printers for pointer types of string slices does not work since Rust 1.55 because of the changes in debug info generation introduced in rust-lang/rust#85269. Since 1.55, rustc generates `ptr_const$<...>` and `ptr_mut$<...>` type names instead of `const str *` and `mut str *` when targeting MSVC. So pretty-printer should be updated and the corresponding `lldbg-check`s should be added
039c5e0
to
369d158
Compare
@Undin Yes, they fail because of the changes in debug info generation introduced in rust-lang/rust#85269. I'd just disable these checks for now and merge the PR. Pretty-printers for MSVC can be updated later in another PR. I've opened an issue for that: #7935 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
Build succeeded: |
This PR enables testing of LLDB pretty-printers on Windows (with bundled MSVC LLDB) on CI.
Besides CI,
runPrettyPrintersTests
task can be executed on Windows locally to check the pretty-printers. But keep in mind thatmklink
command used inrunPrettyPrintersTests
task may require Administrator privileges on Windows 10 (in contrast to Windows Server used by GitHub Actions). To deal with this, consider enabling Developer Mode.changelog: Test LLDB pretty-printers on Windows