Disable the tests on MacOS

This commit is contained in:
YizhePKU 2024-06-03 05:36:09 +08:00
parent 8babd9bb1c
commit 3263f53b69

View File

@ -6,6 +6,7 @@ use nu_test_support::terminal::{
use std::{io::Write, time::Duration}; use std::{io::Write, time::Duration};
#[test] #[test]
#[cfg(any(windows, linux))]
fn auto_cd_works() { fn auto_cd_works() {
// Setup a directory with a sub-directory in it. // Setup a directory with a sub-directory in it.
let cwd = tempfile::tempdir().unwrap(); let cwd = tempfile::tempdir().unwrap();
@ -38,6 +39,7 @@ fn auto_cd_works() {
} }
#[test] #[test]
#[cfg(any(windows, linux))]
fn command_hints_are_pwd_aware() { fn command_hints_are_pwd_aware() {
// PWD-aware command hints require setting history file format to "sqlite". // PWD-aware command hints require setting history file format to "sqlite".
let nu_config = tempfile::NamedTempFile::new().unwrap(); let nu_config = tempfile::NamedTempFile::new().unwrap();