From e19a68ac93bd54451ebffd53627d57aaf1068e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Fri, 18 Oct 2024 15:14:26 -0700 Subject: [PATCH] Sleep a bit between iterations in vma_comparison test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We are still seeing the occasional flake of the vma_comparison test, caused by a one page difference in the size of one of the memory regions. In the hopes of achieving more of a quiesced state, sleep a bit between iterations in there. Signed-off-by: Daniel Müller --- src/normalize/ioctl.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/normalize/ioctl.rs b/src/normalize/ioctl.rs index da67610e..b27afd19 100644 --- a/src/normalize/ioctl.rs +++ b/src/normalize/ioctl.rs @@ -258,6 +258,8 @@ mod tests { use std::env::current_exe; use std::fs::File; + use std::thread::sleep; + use std::time::Duration; use crate::maps; @@ -390,6 +392,8 @@ mod tests { if from_text == from_ioctl { break } + + sleep(Duration::from_millis(500)); } assert_eq!(from_text, from_ioctl, "{from_text:#x?}\n{from_ioctl:#x?}");