rust/tests/ui/panics
Nicholas Nethercote f20738dfb9 Improve filtering in default-backtrace-ice.rs.
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.
2023-05-05 07:18:06 +10:00
..
abort-on-panic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
args-panic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
default-backtrace-ice.rs Improve filtering in default-backtrace-ice.rs. 2023-05-05 07:18:06 +10:00
default-backtrace-ice.stderr Improve filtering in default-backtrace-ice.rs. 2023-05-05 07:18:06 +10:00
doublepanic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
explicit-panic-msg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
explicit-panic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
fmt-only-once.rs test that we format the panic message only once 2023-04-25 18:11:28 +02:00
fmt-only-once.run.stderr test that we format the panic message only once 2023-04-25 18:11:28 +02:00
fmt-panic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-47429-short-backtraces.legacy.run.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-47429-short-backtraces.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-47429-short-backtraces.v0.run.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
location-detail-panic-no-column.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
location-detail-panic-no-column.run.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
location-detail-panic-no-file.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
location-detail-panic-no-file.run.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
location-detail-panic-no-line.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
location-detail-panic-no-line.run.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
location-detail-panic-no-location-info.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
location-detail-panic-no-location-info.run.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
location-detail-unwrap-no-file.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
location-detail-unwrap-no-file.run.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
main-panic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-2021.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-2021.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-arg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-handler-chain-update-hook.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-handler-chain.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-handler-flail-wildly.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-handler-set-twice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-in-dtor-drops-fields.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-macro-any-wrapped.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-macro-any.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-macro-explicit.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-macro-fmt.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-macro-owned.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-macro-static.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-main.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-parens.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-recover-propagate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-set-handler.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-set-unset-handler.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-short-backtrace-windows-x86_64.rs Add some reasons why tests are ignored. 2023-04-15 16:11:42 -07: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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-task-name-none.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic-task-name-owned.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
panic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
result-get-panic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
runtime-switch.legacy.run.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
runtime-switch.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
runtime-switch.v0.run.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
test-panic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
test-should-fail-bad-message.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
test-should-panic-bad-message.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
test-should-panic-no-message.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unique-panic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
while-body-panics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
while-panic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00