rust/tests/ui/panics
jyn 801c1d8b90 fix default-backtrace-ice test
when running `tests/ui/panics/default-backtrace-ice.rs locally it gave this error:
```
failures:

---- [ui] tests/ui/panics/default-backtrace-ice.rs stdout ----
Saved the actual stderr to "/home/jyn/src/rust3/build/x86_64-unknown-linux-gnu/test/ui/panics/default-backtrace-ice/default-backtrace-ice.stderr"
diff of stderr:

7
8	aborting due to `-Z treat-err-as-bug=1`
9	stack backtrace:
-	(end_short_backtrace)
-	(begin_short_backtrace)
-	(end_short_backtrace)
-	(begin_short_backtrace)
+	      [... omitted 22 frames ...]
+
```

this is a regression from setting RUST_BACKTRACE=1 by default. we need to turn off the new behavior when running UI tests so that they reflect our dist compiler. normally that's done by checking `sess.unstable_opts.ui_testing`, but this happens extremely early in the compiler before we've expanded arg files. do an extremely simple hack that doesn't work in all cases - we don't need it to work in all cases, only when running UI tests.
2024-12-25 19:47:28 -05: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 Share inline(never) generics across crates 2024-11-28 13:43:05 -05:00
issue-47429-short-backtraces.run.stderr Share inline(never) generics across crates 2024-11-28 13:43:05 -05: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 Share inline(never) generics across crates 2024-11-28 13:43:05 -05:00
runtime-switch.run.stderr Share inline(never) generics across crates 2024-11-28 13:43:05 -05:00
short-ice-remove-middle-frames-2.rs Share inline(never) generics across crates 2024-11-28 13:43:05 -05:00
short-ice-remove-middle-frames-2.run.stderr Share inline(never) generics across crates 2024-11-28 13:43:05 -05:00
short-ice-remove-middle-frames.rs Share inline(never) generics across crates 2024-11-28 13:43:05 -05:00
short-ice-remove-middle-frames.run.stderr Share inline(never) generics across crates 2024-11-28 13:43:05 -05: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