We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f6df15 commit bb06a0cCopy full SHA for bb06a0c
tests/run-pass/sync.rs
@@ -10,10 +10,13 @@ fn main() {
10
{
11
test_mutex_libc_init_recursive();
12
test_mutex_libc_init_normal();
13
- test_mutex_libc_static_initializer_recursive();
14
test_rwlock_stdlib();
15
test_rwlock_libc_static_initializer();
16
}
+ #[cfg(target_os = "linux")]
17
+ {
18
+ test_mutex_libc_static_initializer_recursive();
19
+ }
20
21
22
fn test_mutex_stdlib() {
@@ -64,7 +67,7 @@ fn test_mutex_libc_init_normal() {
64
67
65
68
66
69
-#[cfg(not(target_os = "windows"))]
70
+#[cfg(target_os = "linux")]
71
fn test_mutex_libc_static_initializer_recursive() {
72
let mutex = std::cell::UnsafeCell::new(libc::PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP);
73
unsafe {
0 commit comments