Commit Graph

21 Commits

Author SHA1 Message Date
Walnut
d1d26f096c update tests w/ new struct summary 2026-06-01 00:57:56 -05:00
Jieyou Xu
a6361c8127 Disable tests/debuginfo/numeric-types.rs v nz_{i,u}size checks
On lldb 22 (locally lldb 22.1.6) I see

```
v nz_isize
error: Invalid type: Cannot determine size
[...]
v nz_usize
error: Invalid type: Cannot determine size
```

AFAICT this might be an upstream issue, as reported in
<https://github.com/llvm/llvm-project/issues/196812>. Let's disable for
now to not have `./x test` fail for contributors using lldb 22.
2026-05-24 20:09:10 +02:00
Walnut
eca09dedef fix tests 2026-03-31 05:01:25 -05:00
joboet
88cec3a1c0 update debuginfo visualizers and tests 2026-03-02 11:57:03 +01:00
Martin Nordholts
5b57d02e9f compiletest: Use //@ prefixes also for debuginfo test directives
So that when we later add support for revisions we can use the same
syntax for revisions as elsewhere.

This also prevents people from making typos for commands since
`src/tools/compiletest/src/directives/directive_names.rs` will catch such
typos now.

Note that we one FIXME for a non-trivial change for later:
```
// FIXME(148097): Change `// cdb-checksimple_closure` to `//@ cdb-check:simple_closure`
```
2025-11-25 06:13:45 +01:00
Tom Tromey
71e2e0cded Minor fixes to StdNonZeroNumberProvider for gdb
While looking at the pretty-printers, I found a few minor oddities in
StdNonZeroNumberProvider.

First, gdb.Type.fields() already returns a sequence, so there's no
need to call list().

Second, it's more idiomatic for the (somewhat misnamed) to_string
method to simply return the underlying gdb.Value.  This also lets gdb
apply whatever formats were passed to `print`, as the new test shows.

Third, there's no need to use the field's name when looking up a field
in a value, the gdb.Field itself can be used.
2025-11-05 11:42:54 -07:00
Guillaume Gomez
2ad443c849 Ignore failing debuginfo tests with gcc backend 2025-10-13 15:20:49 +02:00
Jieyou Xu
dccb6c0f27 Mark numeric-types.rs as 64-bit only for now
This is to unblock the tree, a proper fix will need to be investigated.
I think the debuginfo test suite supports revisions, however debugger
directives do not respect such revisions, which is problematic.

It's that 32-bit and 64-bit msvc of course have different integer widths
for `isize` and `usize`, meaning their underlying integer is different
and thus printed differently.
2024-11-17 04:16:59 +08:00
Jieyou Xu
1503279593 Update cdb annotations for numeric-types with cdb 10.0.26100.2161 2024-11-17 00:33:40 +08:00
Ben Kimock
156088f8a8 Delete redundant gdb-version requirements and related comments 2024-08-18 16:58:25 -04:00
Ben Kimock
70320c1936 Enable more debuginfo tests on Windows 2024-08-16 21:14:45 -04:00
Markus Reiter
33e68aadc9 Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
Markus Reiter
96431e4b82 Use explicit LLDB commands instead of print/p aliases. 2024-03-15 15:38:03 +01:00
Markus Reiter
75fba9d574 Remove LLDB persistent results in compiletest. 2024-03-14 17:34:58 +01:00
Markus Reiter
4a799082fe Fix StdNonZeroNumberSummaryProvider. 2024-03-14 17:34:58 +01:00
Markus Reiter
ecee730c45 Try fixing debuginfo test. 2024-03-14 17:34:58 +01:00
Markus Reiter
b2fbb8a053 Use generic NonZero in tests. 2024-02-25 12:03:48 +01:00
许杰友 Jieyou Xu (Joe)
6e48b96692 [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
Markus Reiter
021739c840 Update tests. 2024-01-27 16:38:57 +01:00
Mateusz Mikuła
f6ea2ea551 Upgrade mingw-w64 on CI 2023-01-29 13:01:06 +01:00
Albert Larsan
cf2dff2b1e Move /src/test to /tests 2023-01-11 09:32:08 +00:00