Skip to content

Commit

Permalink
Sleep a bit between iterations in vma_comparison test
Browse files Browse the repository at this point in the history
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 <deso@posteo.net>
  • Loading branch information
d-e-s-o committed Oct 18, 2024
1 parent b8a004e commit e19a68a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/normalize/ioctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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?}");
Expand Down

0 comments on commit e19a68a

Please sign in to comment.