From d91073846a2bd09fcdc7a1a73ae7b2d49430e859 Mon Sep 17 00:00:00 2001 From: vianney Date: Thu, 29 Aug 2024 11:36:06 +0200 Subject: [PATCH] Improve miri job runtime (#601) --- ddcommon/src/entity_id/unix/container_id.rs | 2 ++ ddcommon/src/entity_id/unix/mod.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ddcommon/src/entity_id/unix/container_id.rs b/ddcommon/src/entity_id/unix/container_id.rs index 374e48ca3..7031a79e6 100644 --- a/ddcommon/src/entity_id/unix/container_id.rs +++ b/ddcommon/src/entity_id/unix/container_id.rs @@ -51,6 +51,7 @@ mod tests { use super::*; use maplit::hashmap; + #[cfg_attr(miri, ignore)] #[test] fn test_container_id_line_parsing() { let test_lines = hashmap! { @@ -92,6 +93,7 @@ mod tests { } } + #[cfg_attr(miri, ignore)] #[test] fn test_container_id_file_parsing() { let test_root_dir = Path::new(concat!(env!("CARGO_MANIFEST_DIR"), "/tests")); diff --git a/ddcommon/src/entity_id/unix/mod.rs b/ddcommon/src/entity_id/unix/mod.rs index 59dd68c78..611c1d7ee 100644 --- a/ddcommon/src/entity_id/unix/mod.rs +++ b/ddcommon/src/entity_id/unix/mod.rs @@ -149,21 +149,25 @@ mod tests { } } + #[cfg_attr(miri, ignore)] #[test] fn test_entity_id_for_v2() { test_entity_id("cgroup.v2", Some(&IN_REGEX)) } + #[cfg_attr(miri, ignore)] #[test] fn test_entity_id_for_v1() { test_entity_id("cgroup.linux", Some(&IN_REGEX)) } + #[cfg_attr(miri, ignore)] #[test] fn test_entity_id_for_container_id() { test_entity_id("cgroup.docker", Some(&CI_REGEX)) } + #[cfg_attr(miri, ignore)] #[test] fn test_entity_id_for_no_id() { test_entity_id("cgroup.no_memory", None)