From 03e45f97b821f42ba5e63aec675d4f41958d3048 Mon Sep 17 00:00:00 2001 From: "Brian Fraser fraserb@gmail.com" <> Date: Sun, 15 Jul 2012 19:05:12 -0300 Subject: [PATCH] t/pt-ioprofile/pt-ioprofile.t: Be slightly laxer about fractional seconds in a test to avoid white smoke --- t/pt-ioprofile/pt-ioprofile.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/pt-ioprofile/pt-ioprofile.t b/t/pt-ioprofile/pt-ioprofile.t index 3044fb56..fa01fe9f 100644 --- a/t/pt-ioprofile/pt-ioprofile.t +++ b/t/pt-ioprofile/pt-ioprofile.t @@ -50,8 +50,8 @@ like( # If the system is really slow, it may take a second to process the files # and then clean up all the temp stuff. We'll give it a few seconds benefit of the doubt. cmp_ok( - $t1 - $t0, - '<', + int($t1 - $t0), + '<=', 6, "Runs for --run-time, more or less" );