diff --git a/components/background_hang_monitor/tests/hang_monitor_tests.rs b/components/background_hang_monitor/tests/hang_monitor_tests.rs index 23b32dd1bbb..1ed3ec79ac6 100644 --- a/components/background_hang_monitor/tests/hang_monitor_tests.rs +++ b/components/background_hang_monitor/tests/hang_monitor_tests.rs @@ -27,6 +27,7 @@ lazy_static! { } #[test] +#[cfg(not("linux"))] fn test_hang_monitoring() { let _lock = SERIAL.lock().unwrap(); @@ -130,7 +131,7 @@ fn test_hang_monitoring() { #[test] // https://github.com/servo/servo/issues/28270 -#[cfg(not(any(target_os = "windows", target_os = "macos")))] +#[cfg(not(any(target_os = "windows", target_os = "macos", target_os = "linux")))] fn test_hang_monitoring_unregister() { let _lock = SERIAL.lock().unwrap(); @@ -166,7 +167,7 @@ fn test_hang_monitoring_unregister() { #[test] // https://github.com/servo/servo/issues/28270 -#[cfg(not(any(target_os = "windows", target_os = "macos")))] +#[cfg(not(any(target_os = "windows", target_os = "macos", "linux")))] fn test_hang_monitoring_exit_signal() { let _lock = SERIAL.lock().unwrap();