From 2e35fc5cb9cb48650c768b05b9a89bd754a60c2d Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Fri, 12 Mar 2021 16:49:36 -0500 Subject: [PATCH 1/2] Disable hanging hang monitor tests on windows --- .../background_hang_monitor/tests/hang_monitor_tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/background_hang_monitor/tests/hang_monitor_tests.rs b/components/background_hang_monitor/tests/hang_monitor_tests.rs index 2dade559f84..a9818d1b09b 100644 --- a/components/background_hang_monitor/tests/hang_monitor_tests.rs +++ b/components/background_hang_monitor/tests/hang_monitor_tests.rs @@ -127,6 +127,8 @@ fn test_hang_monitoring() { } #[test] +// https://github.com/servo/servo/issues/28270 +#[cfg(not(target_os = "windows"))] fn test_hang_monitoring_unregister() { let _lock = SERIAL.lock().unwrap(); @@ -161,6 +163,8 @@ fn test_hang_monitoring_unregister() { } #[test] +// https://github.com/servo/servo/issues/28270 +#[cfg(not(target_os = "windows"))] fn test_hang_monitoring_exit_signal() { let _lock = SERIAL.lock().unwrap(); From 9e1f6ee332ff9f789ac4a79f5fe3b7ecfca674f2 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Sun, 14 Mar 2021 22:24:48 -0400 Subject: [PATCH 2/2] Ignore warnings. --- components/background_hang_monitor/tests/hang_monitor_tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/background_hang_monitor/tests/hang_monitor_tests.rs b/components/background_hang_monitor/tests/hang_monitor_tests.rs index a9818d1b09b..dbccb5e50de 100644 --- a/components/background_hang_monitor/tests/hang_monitor_tests.rs +++ b/components/background_hang_monitor/tests/hang_monitor_tests.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/. */ +#![allow(unused_imports)] + #[macro_use] extern crate lazy_static;