File: disable-tests-requiring-daemon.diff

package info (click to toggle)
rust-zbus-1 1.9.3-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 864 kB
  • sloc: makefile: 2
file content (152 lines) | stat: -rw-r--r-- 4,284 bytes parent folder | download | duplicates (2)
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
Index: rust-zbus-1-1.9.3/src/connection.rs
===================================================================
--- rust-zbus-1-1.9.3.orig/src/connection.rs
+++ rust-zbus-1-1.9.3/src/connection.rs
@@ -598,7 +598,7 @@ mod tests {
         assert_eq!(val, "yay");
     }
 
-    #[test]
+    /*#[test]
     fn serial_monotonically_increases() {
         let c = Connection::new_session().unwrap();
         let serial = c.next_serial() + 1;
@@ -606,5 +606,5 @@ mod tests {
         for next in serial..serial + 10 {
             assert_eq!(next, c.next_serial());
         }
-    }
+    }*/
 }
Index: rust-zbus-1-1.9.3/src/fdo.rs
===================================================================
--- rust-zbus-1-1.9.3.orig/src/fdo.rs
+++ rust-zbus-1-1.9.3/src/fdo.rs
@@ -520,7 +520,7 @@ mod tests {
         assert_eq!(e, fdo::Error::TimedOut("so long".to_string()));
     }
 
-    #[test]
+    /*#[test]
     fn signal() {
         // Register a well-known name with the session bus and ensure we get the appropriate
         // signals called for that.
@@ -580,5 +580,5 @@ mod tests {
 
         let result = proxy.release_name(&well_known).unwrap();
         assert_eq!(result, fdo::ReleaseNameReply::NonExistent);
-    }
+    }*/
 }
Index: rust-zbus-1-1.9.3/src/lib.rs
===================================================================
--- rust-zbus-1-1.9.3.orig/src/lib.rs
+++ rust-zbus-1-1.9.3/src/lib.rs
@@ -237,7 +237,7 @@ mod tests {
         assert!(primary.flags() == MessageFlags::NoAutoStart);
     }
 
-    #[test]
+    /*#[test]
     fn basic_connection() {
         let connection = crate::Connection::new_session()
             .map_err(|e| {
@@ -313,7 +313,7 @@ mod tests {
         assert!(fd.as_raw_fd() >= 0);
         let f = unsafe { File::from_raw_fd(fd.as_raw_fd()) };
         f.metadata().unwrap();
-    }
+    }*/
 
     // Let's try getting us a fancy name on the bus
     #[repr(u32)]
@@ -333,7 +333,7 @@ mod tests {
         AlreadyOwner = 0x04,
     }
 
-    #[test]
+    /*#[test]
     fn freedesktop_api() {
         let mut connection = crate::Connection::new_session()
             .map_err(|e| {
@@ -438,9 +438,9 @@ mod tests {
 
         let uid: u32 = (&hashmap["UnixUserID"]).try_into().unwrap();
         println!("DBus bus UID: {}", uid);
-    }
+    }*/
 
-    #[test]
+    /*#[test]
     fn freedesktop_api_async() {
         futures::executor::block_on(test_freedesktop_api()).unwrap();
     }
@@ -649,7 +649,7 @@ mod tests {
 
         let val = child.join().expect("failed to join");
         assert_eq!(val, 2);
-    }
+    }*/
 
     #[test]
     fn connection_is_send_and_sync() {
Index: rust-zbus-1-1.9.3/src/object_server.rs
===================================================================
--- rust-zbus-1-1.9.3.orig/src/object_server.rs
+++ rust-zbus-1-1.9.3/src/object_server.rs
@@ -799,7 +799,7 @@ mod tests {
         Ok(val)
     }
 
-    #[test]
+    /*#[test]
     fn basic_iface() {
         let conn = Connection::new_session().unwrap();
         let mut object_server = ObjectServer::new(&conn);
@@ -853,5 +853,5 @@ mod tests {
 
         let val = child.join().expect("failed to join");
         assert_eq!(val, 2);
-    }
+    }*/
 }
Index: rust-zbus-1-1.9.3/src/proxy.rs
===================================================================
--- rust-zbus-1-1.9.3.orig/src/proxy.rs
+++ rust-zbus-1-1.9.3/src/proxy.rs
@@ -342,7 +342,7 @@ mod tests {
     use super::*;
     use std::sync::Arc;
 
-    #[test]
+    /*#[test]
     fn signal() {
         // Register a well-known name with the session bus and ensure we get the appropriate
         // signals called for that.
@@ -404,5 +404,5 @@ mod tests {
                 break;
             }
         }
-    }
+    }*/
 }
Index: rust-zbus-1-1.9.3/src/signal_receiver.rs
===================================================================
--- rust-zbus-1-1.9.3.orig/src/signal_receiver.rs
+++ rust-zbus-1-1.9.3/src/signal_receiver.rs
@@ -202,7 +202,7 @@ mod tests {
         Ok(99)
     }
 
-    #[test]
+    /*#[test]
     fn multiple_proxy_signals() {
         struct MultiSignal {
             times_called: Rc<RefCell<u8>>,
@@ -256,5 +256,5 @@ mod tests {
 
         let val = child.join().expect("failed to join");
         assert_eq!(val, 99);
-    }
+    }*/
 }