From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/debuginfo/thread-names.rs | 51 -------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/test/debuginfo/thread-names.rs (limited to 'src/test/debuginfo/thread-names.rs') diff --git a/src/test/debuginfo/thread-names.rs b/src/test/debuginfo/thread-names.rs deleted file mode 100644 index 7a35a5189..000000000 --- a/src/test/debuginfo/thread-names.rs +++ /dev/null @@ -1,51 +0,0 @@ -// compile-flags:-g -// We can't set the main thread name on Linux because it renames the process (#97191) -// ignore-linux -// ignore-android -// ignore-dragonfly -// ignore-emscripten -// ignore-freebsd -// ignore-haiku -// ignore-ios -// ignore-netbsd -// ignore-openbsd -// ignore-solaris -// ignore-sgx -// ignore-windows-gnu - -// === GDB TESTS ================================================================================== -// -// gdb-command:run -// -// gdb-command:info threads -// gdb-check: 1 Thread [...] [...] "main" [...] -// gdb-check:* 2 Thread [...] [...] "my new thread" [...] - -// === LLDB TESTS ================================================================================= -// -// lldb-command:run -// -// lldb-command:thread info 1 -// lldb-check:thread #1:[...]name = 'main'[...] -// lldb-command:thread info 2 -// lldb-check:thread #2:[...]name = 'my new thread'[...] - -// === CDB TESTS ================================================================================== -// -// cdb-command:g -// -// cdb-command:~ -// cdb-check: 0 Id: [...] Suspend: 1 Teb: [...] Unfrozen "main" -// cdb-check:. [...] Id: [...] Suspend: 1 Teb: [...] Unfrozen "my new thread" - -use std::thread; - -fn main() { - let handle = thread::Builder::new().name("my new thread".into()).spawn(|| { - zzz(); // #break - }).unwrap(); - - handle.join().unwrap(); -} - -fn zzz() {} -- cgit v1.2.3