From ef0472aebb5e1756dd79a23716ddeae79b3e1bc3 Mon Sep 17 00:00:00 2001 From: YizhePKU Date: Mon, 3 Jun 2024 06:18:33 +0800 Subject: [PATCH] Disable the module instead --- tests/main.rs | 1 + tests/terminal/mod.rs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/main.rs b/tests/main.rs index dddf851151..64a171a299 100644 --- a/tests/main.rs +++ b/tests/main.rs @@ -14,4 +14,5 @@ mod plugins; mod repl; mod scope; mod shell; +#[cfg(not(macos))] mod terminal; diff --git a/tests/terminal/mod.rs b/tests/terminal/mod.rs index 2d3d4d0ba3..bc375a77dc 100644 --- a/tests/terminal/mod.rs +++ b/tests/terminal/mod.rs @@ -6,7 +6,6 @@ use nu_test_support::terminal::{ use std::{io::Write, time::Duration}; #[test] -#[cfg(any(windows, linux))] fn auto_cd_works() { // Setup a directory with a sub-directory in it. let cwd = tempfile::tempdir().unwrap(); @@ -39,7 +38,6 @@ fn auto_cd_works() { } #[test] -#[cfg(any(windows, linux))] fn command_hints_are_pwd_aware() { // PWD-aware command hints require setting history file format to "sqlite". let nu_config = tempfile::NamedTempFile::new().unwrap();