diff --git a/components/background_hang_monitor/tests/hang_monitor_tests.rs b/components/background_hang_monitor/tests/hang_monitor_tests.rs index dbccb5e50de..23b32dd1bbb 100644 --- a/components/background_hang_monitor/tests/hang_monitor_tests.rs +++ b/components/background_hang_monitor/tests/hang_monitor_tests.rs @@ -130,7 +130,7 @@ fn test_hang_monitoring() { #[test] // https://github.com/servo/servo/issues/28270 -#[cfg(not(target_os = "windows"))] +#[cfg(not(any(target_os = "windows", target_os = "macos")))] fn test_hang_monitoring_unregister() { let _lock = SERIAL.lock().unwrap(); @@ -166,7 +166,7 @@ fn test_hang_monitoring_unregister() { #[test] // https://github.com/servo/servo/issues/28270 -#[cfg(not(target_os = "windows"))] +#[cfg(not(any(target_os = "windows", target_os = "macos")))] fn test_hang_monitoring_exit_signal() { let _lock = SERIAL.lock().unwrap(); diff --git a/components/net/tests/fetch.rs b/components/net/tests/fetch.rs index 821e81a00c2..653526adccb 100644 --- a/components/net/tests/fetch.rs +++ b/components/net/tests/fetch.rs @@ -2,6 +2,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ +#![cfg(not(target_os = "windows"))] + use crate::fetch_with_context; use crate::fetch_with_cors_cache; use crate::http_loader::{expect_devtools_http_request, expect_devtools_http_response}; @@ -1344,6 +1346,7 @@ fn test_opaque_redirect_filtered_fetch_async_returns_complete_response() { } #[test] +#[cfg(not(target_os = "windows"))] fn test_fetch_with_devtools() { static MESSAGE: &'static [u8] = b"Yay!"; let handler = move |_: HyperRequest, response: &mut HyperResponse| { diff --git a/components/net/tests/http_loader.rs b/components/net/tests/http_loader.rs index ce3bc4bb270..e9de2cb983f 100644 --- a/components/net/tests/http_loader.rs +++ b/components/net/tests/http_loader.rs @@ -2,6 +2,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ +#![cfg(not(target_os = "windows"))] + use crate::fetch; use crate::fetch_with_context; use crate::make_server; @@ -333,6 +335,7 @@ fn test_request_and_response_data_with_network_messages() { } #[test] +#[cfg(not(target_os = "windows"))] fn test_request_and_response_message_from_devtool_without_pipeline_id() { let handler = move |_: HyperRequest, response: &mut HyperResponse| { response diff --git a/components/net/tests/main.rs b/components/net/tests/main.rs index 7583fdf0fc5..be43c23b0ca 100644 --- a/components/net/tests/main.rs +++ b/components/net/tests/main.rs @@ -3,6 +3,7 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ #![cfg(test)] +#![allow(dead_code)] #[macro_use] extern crate lazy_static;