mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
f20738dfb9
This test is supposed to ensure that full backtraces are used for ICEs. But it doesn't actually do that -- the filtering done cannot distinguish between a full backtrace versus a short backtrace. So this commit changes the filtering to preserve the existence of `__rust_{begin,end}_short_backtrace` markers, which only appear in full backtraces. This change means the test now tests what it is supposed to test. Also, the existing filtering included a rule that excluded any line starting with two spaces. This was too strong because it filtered out some parts of the error message. (This was not a showstopper). It was also not strong enough because it didn't work with three digit stack frame numbers, which just started seeing after upgrading my Ubuntu distro to 23.04 machine (this *was* a showstopper). So the commit replaces that rule with two more precise rules, one for lines with stack frame numbers, and one for "at ..." lines. |
||
---|---|---|
.. | ||
abort-on-panic.rs | ||
args-panic.rs | ||
default-backtrace-ice.rs | ||
default-backtrace-ice.stderr | ||
doublepanic.rs | ||
explicit-panic-msg.rs | ||
explicit-panic.rs | ||
fmt-only-once.rs | ||
fmt-only-once.run.stderr | ||
fmt-panic.rs | ||
issue-47429-short-backtraces.legacy.run.stderr | ||
issue-47429-short-backtraces.rs | ||
issue-47429-short-backtraces.v0.run.stderr | ||
location-detail-panic-no-column.rs | ||
location-detail-panic-no-column.run.stderr | ||
location-detail-panic-no-file.rs | ||
location-detail-panic-no-file.run.stderr | ||
location-detail-panic-no-line.rs | ||
location-detail-panic-no-line.run.stderr | ||
location-detail-panic-no-location-info.rs | ||
location-detail-panic-no-location-info.run.stderr | ||
location-detail-unwrap-no-file.rs | ||
location-detail-unwrap-no-file.run.stderr | ||
main-panic.rs | ||
panic-2021.rs | ||
panic-2021.stderr | ||
panic-arg.rs | ||
panic-handler-chain-update-hook.rs | ||
panic-handler-chain.rs | ||
panic-handler-flail-wildly.rs | ||
panic-handler-set-twice.rs | ||
panic-in-dtor-drops-fields.rs | ||
panic-macro-any-wrapped.rs | ||
panic-macro-any.rs | ||
panic-macro-explicit.rs | ||
panic-macro-fmt.rs | ||
panic-macro-owned.rs | ||
panic-macro-static.rs | ||
panic-main.rs | ||
panic-parens.rs | ||
panic-recover-propagate.rs | ||
panic-set-handler.rs | ||
panic-set-unset-handler.rs | ||
panic-short-backtrace-windows-x86_64.rs | ||
panic-short-backtrace-windows-x86_64.run.stderr | ||
panic-take-handler-nop.rs | ||
panic-task-name-none.rs | ||
panic-task-name-owned.rs | ||
panic.rs | ||
result-get-panic.rs | ||
runtime-switch.legacy.run.stderr | ||
runtime-switch.rs | ||
runtime-switch.v0.run.stderr | ||
test-panic.rs | ||
test-should-fail-bad-message.rs | ||
test-should-panic-bad-message.rs | ||
test-should-panic-no-message.rs | ||
unique-panic.rs | ||
while-body-panics.rs | ||
while-panic.rs |