From 9eb927e025d37c4a04c1e147e94205736f02e8c3 Mon Sep 17 00:00:00 2001 From: roblabla Date: Mon, 4 Mar 2024 09:24:41 +0100 Subject: [PATCH] Don't run test_get_os_named_thread on win7 This test won't work on windows 7, as the Thread::set_name function is not implemented there (win7 does not provide a documented mechanism to set thread names). --- library/std/src/thread/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/thread/tests.rs b/library/std/src/thread/tests.rs index efd06c8df6e29..813ede0641530 100644 --- a/library/std/src/thread/tests.rs +++ b/library/std/src/thread/tests.rs @@ -70,7 +70,7 @@ fn test_named_thread_truncation() { } #[cfg(any( - target_os = "windows", + all(target_os = "windows", not(target_vendor = "win7")), target_os = "linux", target_os = "macos", target_os = "ios",