From 762fdb98acd7c22fcfb8a1fd82132884b483d566 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Sat, 9 Sep 2023 19:41:53 -0500 Subject: [PATCH] silence some ucp warnings (#10294) # Description This PR fixes some ucp warnings. # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-command/tests/commands/ucp.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/tests/commands/ucp.rs b/crates/nu-command/tests/commands/ucp.rs index 7387df7747..8d748a3c46 100644 --- a/crates/nu-command/tests/commands/ucp.rs +++ b/crates/nu-command/tests/commands/ucp.rs @@ -548,7 +548,7 @@ fn copy_ignores_ansi_impl(progress: bool) { } //apparently on windows error msg is different, but linux(where i test) is fine. -//fix later +//fix later FIXME #[cfg(unix)] #[test] fn copy_file_not_exists_dst() { @@ -556,6 +556,7 @@ fn copy_file_not_exists_dst() { copy_file_not_exists_dst_impl(true); } +#[cfg(unix)] fn copy_file_not_exists_dst_impl(progress: bool) { Playground::setup("ucp_test_17", |_dirs, sandbox| { sandbox.with_files(vec![EmptyFile("valid.txt")]); @@ -610,7 +611,9 @@ static TEST_COPY_TO_FOLDER: &str = "hello_dir/"; static TEST_COPY_TO_FOLDER_FILE: &str = "hello_dir/hello_world.txt"; static TEST_COPY_FROM_FOLDER: &str = "hello_dir_with_file/"; static TEST_COPY_FROM_FOLDER_FILE: &str = "hello_dir_with_file/hello_world.txt"; +#[cfg(not(target_os = "macos"))] static TEST_COPY_TO_FOLDER_NEW: &str = "hello_dir_new"; +#[cfg(not(target_os = "macos"))] static TEST_COPY_TO_FOLDER_NEW_FILE: &str = "hello_dir_new/hello_world.txt"; #[test]