Note why we're using a new thread in a test

This commit is contained in:
Chris Denton 2024-03-06 15:42:48 +00:00
parent 3314d5ce4c
commit 99577368cf
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE

View File

@ -80,6 +80,7 @@ fn test_named_thread_truncation() {
#[test]
fn test_get_os_named_thread() {
use crate::sys::thread::Thread;
// Spawn a new thread to avoid interfering with other tests running on this thread.
let handler = thread::spawn(|| {
let name = c"test me please";
Thread::set_name(name);