On Mon, Dec 17, 2001 at 04:50:10PM +0100, H . Merijn Brand wrote:
> HP-UX 11.00 Benchmark failures don't appear when ran manually
I find this also
> HP-UX 11.00 stdio/perlio -DDEBUGGING -Uuseperlio
> HP-UX 11.00 stdio/perlio -Duseperlio
> HP-UX 11.00 stdio/perlio -Duseperlio -Duselongdouble
> lib/Benchmark.......................FAILED at test 76
I find it's this test failing (or a later equivalent one).
It's the second test in the if block, or the second test in the else box
that's failing:
if ($slowrate < $fastrate) {
pass ("slow rate is less than fast rate");
ok ($slowfast < 0 && $slowfast > -100,
"slowfast should be less than zero, and > -100");
ok ($fastslow > 100, "fastslow should be > 100");
} else {
is ($slowrate, $fastrate,
"slow rate isn't less than fast rate, so should be the same");
is ($slowfast, 0, "slowfast should be zero");
is ($fastslow, 0, "fastslow should be zero");
}
mm. I wonder if it's one of these "testing numbers with eq" problems
for some stringification of 0.0 :-(
The other culprit might be that if for rounding reasons $fastslow is 100.001
and that's getting rounded to "100%" in Benchmark.pm's output.
Nicholas Clark