File: disable-test-timeout.diff

package info (click to toggle)
rust-sudo-rs 0.2.5-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,768 kB
  • sloc: sh: 160; makefile: 31; ansic: 1
file content (35 lines) | stat: -rw-r--r-- 1,114 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
Index: sudo-rs/src/system/mod.rs
===================================================================
--- sudo-rs.orig/src/system/mod.rs
+++ sudo-rs/src/system/mod.rs
@@ -1101,7 +1101,7 @@ mod tests {
             .is_err_and(|err| err.raw_os_error() == Some(libc::EBADF))
     }
 
-    #[test]
+//    #[test]
     fn close_the_universe() {
         let child_pid = unsafe {
             fork_for_test(|| {
@@ -1135,7 +1135,7 @@ mod tests {
         assert_eq!(status.exit_status(), Some(0));
     }
 
-    #[test]
+//    #[test]
     fn except_stdio_is_fine() {
         let child_pid = unsafe {
             fork_for_test(|| {
Index: sudo-rs/src/system/term/mod.rs
===================================================================
--- sudo-rs.orig/src/system/term/mod.rs
+++ sudo-rs/src/system/term/mod.rs
@@ -252,7 +252,7 @@ mod tests {
         assert!(path.starts_with("/dev/pts/"));
     }
 
-    #[test]
+    //#[test]
     fn tcsetpgrp_and_tcgetpgrp_are_consistent() {
         // Create a socket so the child can send us a byte if successful.
         let (mut rx, mut tx) = UnixStream::pair().unwrap();