File: remove-partial-io.patch

package info (click to toggle)
rust-zstd 0.13.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 340 kB
  • sloc: makefile: 2
file content (75 lines) | stat: -rw-r--r-- 1,915 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
71
72
73
74
75
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/
Index: zstd/Cargo.toml
===================================================================
--- zstd.orig/Cargo.toml
+++ zstd/Cargo.toml
@@ -117,8 +117,5 @@ features = ["derive"]
 [dev-dependencies.humansize]
 version = "2.0"
 
-[dev-dependencies.partial-io]
-version = "0.5"
-
 [dev-dependencies.walkdir]
 version = "2.2"
Index: zstd/src/stream/write/tests.rs
===================================================================
--- zstd.orig/src/stream/write/tests.rs
+++ zstd/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 @@ fn test_cycle() {
     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 @@ fn setup_partial_write(input_data: &[u8]
     }
 
     z
-}
+}*/
Index: zstd/src/stream/tests.rs
===================================================================
--- zstd.orig/src/stream/tests.rs
+++ zstd/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;
 
@@ -54,7 +52,7 @@ fn test_flush() {
     assert_eq!(s, b"hello", "Error decoding after flush.");
 }
 
-#[test]
+/*#[test]
 fn test_try_finish() {
     use std::io::Write;
     let mut z = setup_try_finish();
@@ -139,7 +137,7 @@ fn test_failing_write() {
         &input,
         "WouldBlock errors should not corrupt stream"
     );
-}
+}*/
 
 #[test]
 fn test_invalid_frame() {