File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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 :: new ( "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+ }
You can’t perform that action at this time.
0 commit comments