Skip to content

Commit 3c19c28

Browse files
add repro_old423 test for pipelining
1 parent 8efb409 commit 3c19c28

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/repro_old423.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,18 @@ fn repro_old423() -> zip::result::ZipResult<()> {
1010
let mut archive = ZipArchive::new(io::Cursor::new(v)).expect("couldn't open test zip file");
1111
archive.extract(TempDir::with_prefix("repro_old423")?)
1212
}
13+
14+
#[cfg(all(unix, feature = "parallelism", feature = "_deflate-any"))]
15+
#[test]
16+
fn repro_old423_pipelined() -> zip::result::ZipResult<()> {
17+
use std::{fs, path::Path};
18+
use tempdir::TempDir;
19+
use zip::{read::split_extract, ZipArchive};
20+
21+
let path = Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/data/lin-ub_iwd-v11.zip");
22+
let file = fs::File::open(path)?;
23+
let archive = ZipArchive::new(file)?;
24+
let td = TempDir::new("repro_old423")?;
25+
split_extract(&archive, td.path(), Default::default()).expect("couldn't extract test zip");
26+
Ok(())
27+
}

0 commit comments

Comments
 (0)