about summary refs log tree commit diff
path: root/tests/ui/panics
AgeCommit message (Collapse)AuthorLines
2023-12-14update use of feature flagslcnr-1/+1
2023-09-29mark relevant tests as requiring unwindingPietro Albini-2/+4
2023-08-27avoid triple-backtrace due to panic-during-cleanupRalf Jung-6/+7
2023-08-25keep trying which flags we need for this test until it passes borsRalf Jung-5/+10
2023-08-24add tests for both kinds of unwind-terminate messagesRalf Jung-0/+51
2023-08-01Auto merge of #112849 - m-ou-se:panic-message-format, r=thomccbors-22/+45
Change default panic handler message format. This changes the default panic hook's message format from: ``` thread '{thread}' panicked at '{message}', {location} ``` to ``` thread '{thread}' panicked at {location}: {message} ``` This puts the message on its own line without surrounding quotes, making it easiser to read. For example: Before: ``` thread 'main' panicked at 'env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`', src/main.rs:4:6 ``` After: ``` thread 'main' panicked at src/main.rs:4:6: env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh` ``` --- See this PR by `@nyurik,` which does that for only multi-line messages (specifically because of `assert_eq`): https://github.com/rust-lang/rust/pull/111071 This is the change that does that for *all* panic messages.
2023-07-29print omitted frames count for short backtrace modeyukang-0/+3
2023-07-29Change default panic handler message format.Mara Bos-22/+45
2023-07-11Structurally resolve in pattern matching when peeling refs in new solverMichael Goulet-0/+2
2023-05-27Rework handling of recursive panicsAmanieu d'Antras-0/+24
2023-05-17Fix #107910, Shorten backtraces in ICEsyukang-0/+143
2023-05-05Improve filtering in `default-backtrace-ice.rs`.Nicholas Nethercote-1/+18
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-04-25test that we format the panic message only onceLukas Markeffsky-0/+24
2023-04-15Add some reasons why tests are ignored.Eric Huss-1/+1
2023-02-20Move the resolver into a queryOli Scherer-0/+1
2023-02-07Tweak ICE messageEsteban Küber-3/+1
Modify main message to be more conversational and emit one fewer note.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+873