diff --git a/src/uu/shred/src/shred.rs b/src/uu/shred/src/shred.rs index 30777e28acd..8906cde9beb 100644 --- a/src/uu/shred/src/shred.rs +++ b/src/uu/shred/src/shred.rs @@ -539,10 +539,8 @@ fn wipe_file( } // size is an optional argument for exactly how many bytes we want to shred // Ignore failed writes; just keep trying - show_if_err!( - do_pass(&mut file, &pass_type, exact, random_source, size) - .map_err_context(|| format!("{}: File write pass failed", path.maybe_quote())) - ); + do_pass(&mut file, &pass_type, exact, random_source, size) + .map_err_context(|| format!("{}: File write pass failed", path.maybe_quote()))?; } if remove_method != RemoveMethod::None { @@ -681,7 +679,6 @@ fn do_remove( #[cfg(test)] mod tests { - use crate::{BLOCK_SIZE, OPTIMAL_IO_BLOCK_SIZE, split_on_blocks}; #[test] diff --git a/tests/by-util/test_shred.rs b/tests/by-util/test_shred.rs index 9c810ae64bb..f02a670afd5 100644 --- a/tests/by-util/test_shred.rs +++ b/tests/by-util/test_shred.rs @@ -277,7 +277,6 @@ fn test_random_source_regular_file() { } #[test] -#[ignore = "known issue #7947"] fn test_random_source_dir() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures;