File: skip-tests-that-fail-on-some-systems.patch

package info (click to toggle)
rust-tokio-uring 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 828 kB
  • sloc: makefile: 2
file content (287 lines) | stat: -rw-r--r-- 6,581 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
Index: tokio-uring/Cargo.toml
===================================================================
--- tokio-uring.orig/Cargo.toml
+++ tokio-uring/Cargo.toml
@@ -31,6 +31,7 @@ categories = [
 ]
 license = "MIT"
 repository = "https://github.com/tokio-rs/tokio-uring"
+autobenches = false
 
 [package.metadata.docs.rs]
 all-features = true
@@ -38,16 +39,6 @@ all-features = true
 [profile.bench]
 debug = 2
 
-[[bench]]
-name = "lai_no_op"
-path = "benches/lai/no_op.rs"
-harness = false
-
-[[bench]]
-name = "criterion_no_op"
-path = "benches/criterion/no_op.rs"
-harness = false
-
 [dependencies.bytes]
 version = "1.0"
 optional = true
Index: tokio-uring/src/io/noop.rs
===================================================================
--- tokio-uring.orig/src/io/noop.rs
+++ tokio-uring/src/io/noop.rs
@@ -32,6 +32,7 @@ mod test {
     use crate as tokio_uring;
 
     #[test]
+    #[ignore]
     fn perform_no_op() -> () {
         tokio_uring::start(async {
             tokio_uring::no_op().await.unwrap();
Index: tokio-uring/src/runtime/driver/mod.rs
===================================================================
--- tokio-uring.orig/src/runtime/driver/mod.rs
+++ tokio-uring/src/runtime/driver/mod.rs
@@ -533,6 +533,7 @@ mod test {
     }
 
     #[test]
+    #[ignore]
     fn op_stays_in_slab_on_drop() {
         let (op, data) = init();
         drop(op);
@@ -544,6 +545,7 @@ mod test {
     }
 
     #[test]
+    #[ignore]
     fn poll_op_once() {
         let (op, data) = init();
         let mut op = task::spawn(op);
@@ -574,6 +576,7 @@ mod test {
     }
 
     #[test]
+    #[ignore]
     fn poll_op_twice() {
         {
             let (op, ..) = init();
@@ -593,6 +596,7 @@ mod test {
     }
 
     #[test]
+    #[ignore]
     fn poll_change_task() {
         {
             let (op, ..) = init();
@@ -615,6 +619,7 @@ mod test {
     }
 
     #[test]
+    #[ignore]
     fn complete_before_poll() {
         let (op, data) = init();
         let mut op = task::spawn(op);
@@ -633,6 +638,7 @@ mod test {
     }
 
     #[test]
+    #[ignore]
     fn complete_after_drop() {
         let (op, data) = init();
         let index = op.index();
Index: tokio-uring/src/runtime/mod.rs
===================================================================
--- tokio-uring.orig/src/runtime/mod.rs
+++ tokio-uring/src/runtime/mod.rs
@@ -175,12 +175,14 @@ mod test {
     use crate::builder;
 
     #[test]
+    #[ignore]
     fn block_on() {
         let rt = Runtime::new(&builder()).unwrap();
         rt.block_on(async move { () });
     }
 
     #[test]
+    #[ignore]
     fn block_on_twice() {
         let rt = Runtime::new(&builder()).unwrap();
         rt.block_on(async move { () });
Index: tokio-uring/tests/fs_directory.rs
===================================================================
--- tokio-uring.orig/tests/fs_directory.rs
+++ tokio-uring/tests/fs_directory.rs
@@ -7,7 +7,7 @@ use tokio_uring::fs;
 
 use tempfile::tempdir;
 
-#[test]
+/*#[test]
 fn basic_create_dir() {
     tokio_uring::start(async {
         let base_dir = tempdir().unwrap();
@@ -18,9 +18,10 @@ fn basic_create_dir() {
 
         assert!(new_dir_2.is_dir());
     });
-}
+}*/
 
 #[test]
+#[ignore]
 fn basic_remove_dir() {
     tokio_uring::start(async {
         let temp_dir = tempfile::TempDir::new().unwrap();
Index: tokio-uring/tests/driver.rs
===================================================================
--- tokio-uring.orig/tests/driver.rs
+++ tokio-uring/tests/driver.rs
@@ -7,6 +7,7 @@ use tokio_uring::{buf::IoBuf, fs::File};
 mod future;
 
 #[test]
+#[ignore]
 fn complete_ops_on_drop() {
     use std::sync::Arc;
 
@@ -76,6 +77,7 @@ fn complete_ops_on_drop() {
 }
 
 #[test]
+#[ignore]
 fn too_many_submissions() {
     let tempfile = tempfile();
 
@@ -95,6 +97,7 @@ fn too_many_submissions() {
 }
 
 #[test]
+#[ignore]
 fn completion_overflow() {
     use std::process;
     use std::{thread, time};
Index: tokio-uring/tests/fs_file.rs
===================================================================
--- tokio-uring.orig/tests/fs_file.rs
+++ tokio-uring/tests/fs_file.rs
@@ -25,6 +25,7 @@ async fn read_hello(file: &File) {
 }
 
 #[test]
+#[ignore]
 fn basic_read() {
     tokio_uring::start(async {
         let mut tempfile = tempfile();
@@ -52,6 +53,7 @@ fn basic_read_exact() {
 }
 
 #[test]
+#[ignore]
 fn basic_write() {
     tokio_uring::start(async {
         let tempfile = tempfile();
@@ -66,6 +68,7 @@ fn basic_write() {
 }
 
 #[test]
+#[ignore]
 fn vectored_read() {
     tokio_uring::start(async {
         let mut tempfile = tempfile();
@@ -82,6 +85,7 @@ fn vectored_read() {
 }
 
 #[test]
+#[ignore]
 fn vectored_write() {
     tokio_uring::start(async {
         let tempfile = tempfile();
@@ -115,6 +119,7 @@ fn basic_write_all() {
 }
 
 #[test]
+#[ignore]
 fn cancel_read() {
     tokio_uring::start(async {
         let mut tempfile = tempfile();
@@ -130,6 +135,7 @@ fn cancel_read() {
 }
 
 #[test]
+#[ignore]
 fn explicit_close() {
     let mut tempfile = tempfile();
     tempfile.write_all(HELLO).unwrap();
@@ -145,6 +151,7 @@ fn explicit_close() {
 }
 
 #[test]
+#[ignore]
 fn drop_open() {
     tokio_uring::start(async {
         let tempfile = tempfile();
@@ -161,6 +168,7 @@ fn drop_open() {
 }
 
 #[test]
+#[ignore]
 fn drop_off_runtime() {
     let file = tokio_uring::start(async {
         let tempfile = tempfile();
@@ -174,6 +182,7 @@ fn drop_off_runtime() {
 }
 
 #[test]
+#[ignore]
 fn sync_doesnt_kill_anything() {
     let tempfile = tempfile();
 
@@ -188,6 +197,7 @@ fn sync_doesnt_kill_anything() {
 }
 
 #[test]
+#[ignore]
 fn rename() {
     use std::ffi::OsStr;
     tokio_uring::start(async {
@@ -281,7 +291,7 @@ fn write_fixed() {
     });
 }
 
-#[test]
+/*#[test]
 fn basic_fallocate() {
     tokio_uring::start(async {
         let tempfile = tempfile();
@@ -311,7 +321,7 @@ fn basic_fallocate() {
         let size = statx.stx_size;
         assert_eq!(size, 1024);
     });
-}
+}*/
 
 fn tempfile() -> NamedTempFile {
     NamedTempFile::new().unwrap()
Index: tokio-uring/tests/runtime.rs
===================================================================
--- tokio-uring.orig/tests/runtime.rs
+++ tokio-uring/tests/runtime.rs
@@ -1,6 +1,7 @@
 use tokio::net::{TcpListener, TcpStream};
 
 #[test]
+#[ignore]
 fn use_tokio_types_from_runtime() {
     tokio_uring::start(async {
         let listener = TcpListener::bind("0.0.0.0:0").await.unwrap();
@@ -19,6 +20,7 @@ fn use_tokio_types_from_runtime() {
 }
 
 #[test]
+#[ignore]
 fn spawn_a_task() {
     use std::cell::RefCell;
     use std::rc::Rc;