2 // We can't set the main thread name on Linux because it renames the process (#97191)
16 // === GDB TESTS ==================================================================================
20 // gdb-command:info threads
21 // gdb-check: 1 Thread [...] [...] "main" [...]
22 // gdb-check:* 2 Thread [...] [...] "my new thread" [...]
24 // === LLDB TESTS =================================================================================
28 // lldb-command:thread info 1
29 // lldb-check:thread #1:[...]name = 'main'[...]
30 // lldb-command:thread info 2
31 // lldb-check:thread #2:[...]name = 'my new thread'[...]
33 // === CDB TESTS ==================================================================================
38 // cdb-check: 0 Id: [...] Suspend: 1 Teb: [...] Unfrozen "main"
39 // cdb-check:. [...] Id: [...] Suspend: 1 Teb: [...] Unfrozen "my new thread"
44 let handle = thread::Builder::new().name("my new thread".into()).spawn(|| {
48 handle.join().unwrap();