summaryrefslogtreecommitdiff
path: root/lib/Benchmark.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-07-05 17:36:34 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-07-05 17:36:34 +0000
commit620b59a53a550f69eced47589e76083d00363a72 (patch)
tree59f00e2cd5a90811e78626d19eaea79d0e9b1c41 /lib/Benchmark.t
parentc80e248047022d726c15184b066c0b4eff184abe (diff)
downloadperl-620b59a53a550f69eced47589e76083d00363a72.tar.gz
OpenBSD sometimes gets -0, probably due to fp fuzziness..
p4raw-id: //depot/perl@20016
Diffstat (limited to 'lib/Benchmark.t')
-rw-r--r--lib/Benchmark.t6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Benchmark.t b/lib/Benchmark.t
index d9cb156bff..36bccd7dfd 100644
--- a/lib/Benchmark.t
+++ b/lib/Benchmark.t
@@ -305,10 +305,12 @@ sub check_graph_consistency {
$all_passed
&= is ($slowrate, $fastrate,
"slow rate isn't less than fast rate, so should be the same");
+ # In OpenBSD the $slowfast is sometimes a really, really, really
+ # small number less than zero, and this gets stringified as -0.
$all_passed
- &= is ($slowfast, 0, "slowfast should be zero");
+ &= like ($slowfast, qr/^-?0$/, "slowfast should be zero");
$all_passed
- &= is ($fastslow, 0, "fastslow should be zero");
+ &= like ($fastslow, qr/^-?0$/, "fastslow should be zero");
}
return $all_passed;
}