Skip to content

Commit 8d082ea

Browse files
committed
test: condense mode tests with rstest
Fix CI-failing checks.
1 parent c022fbc commit 8d082ea

3 files changed

Lines changed: 67 additions & 301 deletions

File tree

src/uu/cp/src/copydir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl<'a> Context<'a> {
114114
///
115115
/// For convenience while traversing a directory, the [`Entry::new`]
116116
/// function allows creating an entry from a [`Context`] and a
117-
/// [`DirEntry`].
117+
/// [`Path`].
118118
///
119119
/// # Examples
120120
///

src/uu/cp/src/cp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,6 +1789,7 @@ pub(crate) fn copy_attributes(
17891789
let source_metadata = fs::symlink_metadata(source)
17901790
.map_err(|e| CpError::IoErrContext(e, context_for(source, dest)))?;
17911791

1792+
#[cfg(unix)]
17921793
let mut failed_to_set_ownership = false;
17931794

17941795
// Ownership must be changed first to avoid interfering with mode change.

0 commit comments

Comments
 (0)