diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2024-03-06 15:42:48 +0000 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2024-03-06 15:42:48 +0000 |
| commit | 99577368cfb74fe1b19738fdeab6608a208ee134 (patch) | |
| tree | 261ba9adfc056b028f384bcaa7ceb107d8b79961 /library/std/src/thread | |
| parent | 3314d5ce4c209e840c2e4b2c4442f6e031ae0989 (diff) | |
| download | rust-99577368cfb74fe1b19738fdeab6608a208ee134.tar.gz rust-99577368cfb74fe1b19738fdeab6608a208ee134.zip | |
Note why we're using a new thread in a test
Diffstat (limited to 'library/std/src/thread')
| -rw-r--r-- | library/std/src/thread/tests.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/thread/tests.rs b/library/std/src/thread/tests.rs index 813ede06415..b5195f9093f 100644 --- a/library/std/src/thread/tests.rs +++ b/library/std/src/thread/tests.rs @@ -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); |
