15 Commits

Author SHA1 Message Date
Martin Nordholts 686ddd3e2e tests/debuginfo/basic-stepping.rs: Explain why all lines are not steppable
Some optimization passes _improve_ compile times [1]. So we want to run
some passes even with `-Copt-level=0`. That means that some of the lines
in the test can be optimized away. To make regression testing more
robust, we also want to run the test with such passes disabled. The
solution is to use two revisions. One with default `-Copt-level=0`
passes, and one "even less optimized", with enough optimization passes
disabled to keep the maximum number of lines steppable.

[1]: https://github.com/rust-lang/compiler-team/issues/319
2026-03-16 18:39:40 +01:00
Jubilee Young 2b0cce040d Ignore all debuginfo tests for LLDB that we do not run in CI
We only run LLDB 1500 in CI. Any test with a min-lldb-version above that
is currently ignored. It's not clear any of these tests actually work
with that LLDB version, and they definitely don't work on LLDB ~2100.
So, ignore them until we fix debuginfo testing.
2026-02-02 18:13:43 -08:00
Martin Nordholts 423a8dc409 tests/debuginfo/macro-stepping.rs: Add revisions default-mir-passes, no-SingleUseConsts-mir-pass
To prevent the test from regressing both with and without
`SingleUseConsts` MIR pass.
2025-12-23 15:33:56 +01:00
Ralf Jung 18af84b138 debuginfo/macro-stepping test: extend comments 2025-12-01 22:32:36 +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
Jamesbarford a918702bca Re-enable macro-stepping test for AArch64 2025-10-27 10:26:57 +00:00
Ben Kimock 70320c1936 Enable more debuginfo tests on Windows 2024-08-16 21:14:45 -04:00
Ben Kimock 23273e03d7 Disable macro-stepping on current lldb 2024-08-15 17:04:26 -04:00
Ben Kimock b89d1976d1 Require gdb version on some tests 2024-08-13 18:20:48 -04:00
Ben Kimock a561484b81 Enable debuginfo tests that have been temporarily disabled for years 2024-08-11 14:20:15 -04:00
Vadim Petrochenkov 683ad6b607 Update lldb only tests 2024-04-26 04:11:05 +03:00
Markus Reiter 75fba9d574 Remove LLDB persistent results in compiletest. 2024-03-14 17:34:58 +01:00
许杰友 Jieyou Xu (Joe) 6e48b96692 [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
Camille GILLOT b8c67d82d3 Fortify test. 2023-04-23 00:34:46 +02:00
Albert Larsan cf2dff2b1e Move /src/test to /tests 2023-01-11 09:32:08 +00:00