From 9a14f6d2bf26b8ce8b1287c1a38c8ba469fb61d5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 15 May 2022 17:59:36 +0100 Subject: [PATCH] subst tests: Disable under miri We're going to add dbg! calls, which break. Signed-off-by: Ian Jackson --- src/shapelib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shapelib.rs b/src/shapelib.rs index ed8c40e9..18424900 100644 --- a/src/shapelib.rs +++ b/src/shapelib.rs @@ -1156,6 +1156,7 @@ fn substn<'i>(before: Substituting<'i>, needle: &'static str, replacement: &str) before.subst_general(needle, replacement)?.0 } +#[cfg(not(miri))] #[test] fn test_subst_mf1() { use SubstErrorKind as SEK; @@ -1192,6 +1193,7 @@ fn test_subst_mf1() { assert_eq!(n, 2); } +#[cfg(not(miri))] #[test] fn test_subst_mf2() { use SubstErrorKind as SEK; -- 2.30.2