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
|
--- a/src/process/tests.rs
+++ b/src/process/tests.rs
@@ -494,7 +494,7 @@
assert!(inner().is_err());
}
-#[test]
+/*#[test]
fn test_procinfo() {
// test to see that this crate and procinfo give mostly the same results
@@ -519,7 +519,7 @@
//assert_eq!(me_stat.flags, procinfo_stat.flags, "procfs:{:?} procinfo:{:?}", crate::StatFlags::from_bits(me_stat.flags), crate::StatFlags::from_bits(procinfo_stat.flags));
assert_eq!(me_stat.pid, procinfo_stat.pid);
assert_eq!(me_stat.ppid, procinfo_stat.ppid);
-}
+}*/
#[test]
fn test_statm() {
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -167,15 +167,9 @@
[dev-dependencies.criterion]
version = "0.5"
-[dev-dependencies.failure]
-version = "0.1"
-
[dev-dependencies.libc]
version = "0.2.139"
-[dev-dependencies.procinfo]
-version = "0.4.2"
-
[features]
backtrace = [
"dep:backtrace",
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -643,7 +643,7 @@
}
}
- /// Test that our error type can be easily used with the `failure` crate
+ /*/// Test that our error type can be easily used with the `failure` crate
#[test]
fn test_failure() {
fn inner() -> Result<(), failure::Error> {
@@ -661,7 +661,7 @@
let _ = inner2();
// Unwrapping this failure should produce a message that looks like:
// thread 'tests::test_failure' panicked at 'called `Result::unwrap()` on an `Err` value: PermissionDenied(Some("/proc/1/maps"))', src/libcore/result.rs:997:5
- }
+ }*/
/// Test that an ESRCH error gets mapped into a ProcError::NotFound
#[test]
|