rust/tests/ui/process
Trevor Gross 289fe36d37 Print thread ID in panic message if thread name is unknown
`panic!` does not print any identifying information for threads that are
unnamed. However, in many cases, the thread ID can be determined.

This changes the panic message from something like this:

    thread '<unnamed>' panicked at src/main.rs:3:5:
    explicit panic

To something like this:

    thread '<unnamed>' (0xff9bf) panicked at src/main.rs:3:5:
    explicit panic

Stack overflow messages are updated as well.

This change applies to both named and unnamed threads. The ID printed is
the OS integer thread ID rather than the Rust thread ID, which should
also be what debuggers print.
2025-08-06 23:59:47 +00:00
..
core-run-destroy.rs awhile -> a while where appropriate 2025-07-02 20:17:29 +02:00
env-args-reverse-iterator.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
env-funky-keys.rs Use c"lit" for CStrings without unwrap 2024-12-02 18:16:36 +00:00
env-null-vars.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
env-vars.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
exec-env.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
fds-are-cloexec.rs tests: cleanup tests/ui/process/fds-are-cloexec.rs 2025-01-23 20:51:29 +08:00
inherit-env.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
issue-13304.rs tests: cleanup tests/ui/process/issue-13304.rs 2025-01-23 20:51:29 +08:00
issue-14456.rs tests: cleanup tests/ui/process/issue-14456.rs 2025-01-23 20:51:29 +08:00
issue-14940.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
issue-16272.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
issue-20091.rs tests: cleanup tests/ui/process/issue-20091.rs 2025-01-23 20:51:29 +08:00
issue-30490.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
multi-panic.rs Print thread ID in panic message if thread name is unknown 2025-08-06 23:59:47 +00:00
no-stdio.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
nofile-limit.rs Add ignore-backends annotations in failing GCC backend ui tests 2025-07-23 13:48:04 +02:00
println-with-broken-pipe.rs Add ignore-backends annotations in failing GCC backend ui tests 2025-07-23 13:48:04 +02:00
println-with-broken-pipe.run.stderr Print thread ID in panic message if thread name is unknown 2025-08-06 23:59:47 +00:00
println-with-broken-pipe.run.stdout Regression test println!() panic message on ErrorKind::BrokenPipe 2023-07-26 13:41:39 +02:00
process-envs.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
process-exit.rs tests: cleanup tests/ui/process/process-exit.rs 2025-01-23 20:51:29 +08:00
process-panic-after-fork.rs tests: cleanup tests/ui/process/process-panic-after-fork.rs 2025-01-23 20:51:29 +08:00
process-remove-from-env.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
process-sigpipe.rs Use yes except target_os = "nto". 2025-02-18 16:22:16 +00:00
process-spawn-failure.rs cleaned up some tests 2025-07-10 18:50:35 +05:00
process-spawn-nonexistent.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
process-spawn-with-unicode-params.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
process-status-inherits-stdin.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
signal-exit-status.rs tests: cleanup tests/ui/process/signal-exit-status.rs 2025-01-23 20:51:29 +08:00
sigpipe-should-be-ignored.rs tests: cleanup tests/ui/process/sigpipe-should-be-ignored.rs 2025-01-23 20:51:29 +08:00
tls-exit-status.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
try-wait.rs tests: cleanup tests/ui/process/try-wait.rs 2025-01-23 20:51:29 +08:00
win-command-child-path.rs Fix Windows Command search path bug 2025-02-26 13:56:47 +00:00
win-command-curdir-no-verbatim.rs Test Command::current_dir with verbatim path 2025-03-24 18:57:22 +00:00
win-creation-flags.rs Move two windows process tests to tests/ui 2025-02-07 10:43:50 +00:00
win-proc-thread-attributes.rs Move two windows process tests to tests/ui 2025-02-07 10:43:50 +00:00
windows-exit-code-still-active.rs cleaned up some tests 2025-07-10 18:50:35 +05:00