From ad111aa2978702d0d547561e94d23bd54cdb1240 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Fri, 21 Jun 2024 07:51:43 -0700 Subject: [PATCH] test(fuzz): Remove debug printing --- fuzz/fuzz_targets/fuzz_write.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/fuzz/fuzz_targets/fuzz_write.rs b/fuzz/fuzz_targets/fuzz_write.rs index d46b41ef..4fa9ce4f 100755 --- a/fuzz/fuzz_targets/fuzz_write.rs +++ b/fuzz/fuzz_targets/fuzz_write.rs @@ -167,7 +167,6 @@ fn do_operation<'k, T>( where T: Read + Write + Seek, { - println!("do_operation(writer, {:?}, {:?}, {:?}, {:?})", operation, abort, flush_on_finish_file, files_added); writer.set_flush_on_finish_file(flush_on_finish_file); let mut path = Cow::Borrowed(&operation.path); match &operation.basic { @@ -197,23 +196,19 @@ where } BasicFileOperation::ShallowCopy(base) => { let Some(base_path) = base.get_path() else { - println!("Skipping ShallowCopy because no base_path"); return Ok(()); }; deduplicate_paths(&mut path, &base_path); do_operation(writer, &base, false, flush_on_finish_file, files_added)?; - println!("Shallow copying {:?} to {:?}", base_path, path); writer.shallow_copy_file_from_path(&*base_path, &*path)?; *files_added += 1; } BasicFileOperation::DeepCopy(base) => { let Some(base_path) = base.get_path() else { - println!("Skipping DeepCopy because no base_path"); return Ok(()); }; deduplicate_paths(&mut path, &base_path); do_operation(writer, &base, false, flush_on_finish_file, files_added)?; - println!("Deep copying {:?} to {:?}", base_path, path); writer.deep_copy_file_from_path(&*base_path, &*path)?; *files_added += 1; } @@ -237,7 +232,6 @@ where } } if abort && *files_added != 0 { - println!("Calling abort_file()"); writer.abort_file()?; *files_added -= 1; } @@ -248,20 +242,16 @@ where ReopenOption::DoNotReopen => return Ok(()), ReopenOption::ViaFinish => { let old_comment = writer.get_raw_comment().to_owned(); - println!("ViaFinish: old_comment: {:?}", old_comment); replace_with_or_abort(writer, |old_writer: zip::ZipWriter| { zip::ZipWriter::new_append(old_writer.finish().unwrap()).unwrap() }); - println!("writer.get_raw_comment(): {:?}", writer.get_raw_comment()); assert!(writer.get_raw_comment().starts_with(&old_comment)); }, ReopenOption::ViaFinishIntoReadable => { let old_comment = writer.get_raw_comment().to_owned(); - println!("ViaFinishIntoReadable: {:?}", writer); replace_with_or_abort(writer, |old_writer: zip::ZipWriter| { zip::ZipWriter::new_append(old_writer.finish_into_readable().unwrap().into_inner()).unwrap() }); - println!("writer: {:?}", writer); assert!(writer.get_raw_comment().starts_with(&old_comment)); }, }