rust/tests/ui/panics
Guillaume Gomez 3d50eba781
Rollup merge of #134781 - Zalathar:backtrace, r=SparrowLii,jieyouxu
Add more `begin_panic` normalizations to panic backtrace tests

Since #123244, these tests have started failing locally on some systems (#133997) due to minor variations in how `begin_panic` is printed in the backtrace.

The variation appears to occur on macOS when `rust.debuginfo-level = "line-tables-only"` is set, which is the default in `config.compiler.toml`. It does not occur when the debuginfo level is set to 1.

The variation doesn't seem relevant to these tests, so this PR simply adds another custom normalization rule to account for the variation.

---

Will conflict with #134759.
2024-12-26 19:30:29 +01:00
..
abort-on-panic.rs Remove c_unwind from tests and fix tests 2024-06-19 13:54:55 +01:00
args-panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
default-backtrace-ice.rs fix default-backtrace-ice test 2024-12-25 19:47:28 -05:00
default-backtrace-ice.stderr fix default-backtrace-ice test 2024-12-25 19:47:28 -05:00
doublepanic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
explicit-panic-msg.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
explicit-panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fmt-only-once.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fmt-only-once.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
fmt-panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-47429-short-backtraces.rs Add more begin_panic normalizations to panic backtrace tests 2024-12-26 18:15:30 +11:00
issue-47429-short-backtraces.run.stderr Add more begin_panic normalizations to panic backtrace tests 2024-12-26 18:15:30 +11:00
location-detail-panic-no-column.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
location-detail-panic-no-column.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
location-detail-panic-no-file.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
location-detail-panic-no-file.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
location-detail-panic-no-line.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
location-detail-panic-no-line.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
location-detail-panic-no-location-info.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
location-detail-panic-no-location-info.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
location-detail-unwrap-no-file.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
location-detail-unwrap-no-file.run.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
main-panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested_panic_caught.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-2021.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-2021.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-arg.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-handler-chain-update-hook.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-handler-chain.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
panic-handler-flail-wildly.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-handler-set-twice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-in-cleanup.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-in-cleanup.run.stderr bless tests for changed library path 2024-11-30 11:22:52 +01:00
panic-in-dtor-drops-fields.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-in-ffi.rs Add and adapt tests 2024-09-27 14:40:38 +01:00
panic-in-ffi.run.stderr bless tests for changed library path 2024-11-30 11:22:52 +01:00
panic-in-message-fmt.rs add panic location to 'panicked while processing panic' 2024-03-23 09:44:04 +01:00
panic-in-message-fmt.run.stderr panic-in-panic-hook: formatting a message that's just a string is risk-free 2024-03-24 10:29:44 +01:00
panic-macro-any-wrapped.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-macro-any.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-macro-explicit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-macro-fmt.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-macro-owned.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-macro-static.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-main.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-parens.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-recover-propagate.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-set-handler.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-set-unset-handler.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-short-backtrace-windows-x86_64.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-short-backtrace-windows-x86_64.run.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-take-handler-nop.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
panic-task-name-none.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
panic-task-name-owned.rs compiletest: Add a //@ needs-threads directive 2024-03-06 12:35:07 -08:00
panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
result-get-panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
runtime-switch.rs Add more begin_panic normalizations to panic backtrace tests 2024-12-26 18:15:30 +11:00
runtime-switch.run.stderr Add more begin_panic normalizations to panic backtrace tests 2024-12-26 18:15:30 +11:00
short-ice-remove-middle-frames-2.rs Add more begin_panic normalizations to panic backtrace tests 2024-12-26 18:15:30 +11:00
short-ice-remove-middle-frames-2.run.stderr Add more begin_panic normalizations to panic backtrace tests 2024-12-26 18:15:30 +11:00
short-ice-remove-middle-frames.rs Add more begin_panic normalizations to panic backtrace tests 2024-12-26 18:15:30 +11:00
short-ice-remove-middle-frames.run.stderr Add more begin_panic normalizations to panic backtrace tests 2024-12-26 18:15:30 +11:00
test-panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
test-should-fail-bad-message.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
test-should-panic-bad-message.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
test-should-panic-no-message.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
unique-panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
while-body-panics.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
while-panic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00