Skip to content

Commit a59a146

Browse files
committed
Note why we're using a new thread in a test
1 parent b5eea9f commit a59a146

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

std/src/thread/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ fn test_named_thread_truncation() {
8080
#[test]
8181
fn test_get_os_named_thread() {
8282
use crate::sys::thread::Thread;
83+
// Spawn a new thread to avoid interfering with other tests running on this thread.
8384
let handler = thread::spawn(|| {
8485
let name = c"test me please";
8586
Thread::set_name(name);

0 commit comments

Comments
 (0)