File: remove-partial-io.patch

package info (click to toggle)
rust-zstd 0.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 348 kB
  • sloc: makefile: 2
file content (70 lines) | stat: -rw-r--r-- 1,416 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Description: Remove partial-io as it's archived upstream
Last-Update: 2022-09-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -54,9 +54,6 @@
 [dev-dependencies.humansize]
 version = "2.0"
 
-[dev-dependencies.partial-io]
-version = "0.5"
-
 [dev-dependencies.walkdir]
 version = "2.2"
 
--- a/src/stream/write/tests.rs
+++ b/src/stream/write/tests.rs
@@ -1,8 +1,6 @@
 use std::io::{Cursor, Write};
 use std::iter;
 
-use partial_io::{PartialOp, PartialWrite};
-
 use crate::stream::decode_all;
 use crate::stream::write::{Decoder, Encoder};
 
@@ -26,6 +24,7 @@
     assert_eq!(input, &decoded[..]);
 }
 
+/*
 /// Test that flush after a partial write works successfully without
 /// corrupting the frame. This test is in this module because it checks
 /// internal implementation details.
@@ -69,4 +68,4 @@
     }
 
     z
-}
+}*/
--- a/src/stream/tests.rs
+++ b/src/stream/tests.rs
@@ -1,8 +1,6 @@
 use super::{copy_encode, decode_all, encode_all};
 use super::{Decoder, Encoder};
 
-use partial_io::{PartialOp, PartialWrite};
-
 use std::io;
 use std::iter;
 
@@ -55,7 +53,7 @@
 }
 
 #[test]
-fn test_try_finish() {
+/*fn test_try_finish() {
     use std::io::Write;
     let mut z = setup_try_finish();
 
@@ -139,7 +137,7 @@
         &input,
         "WouldBlock errors should not corrupt stream"
     );
-}
+}*/
 
 #[test]
 fn test_invalid_frame() {