Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2007-02-25 13:30:45


David Abrahams wrote:
>
> testing.capture-output date_time/testmicrosec_time_clock.run
>
> looks like a Boost bug.
>
> 2007-Feb-25 10:27:54
> 2007-Feb-25 10:27:54.730125000
> Pass :: hours match
> Pass :: minutes match
> Pass :: seconds match
> Pass :: hours date
> Pass :: last is less
> 2007-Feb-25 10:27:54
> 2007-Feb-25 10:27:54.730125000
> Pass :: hours match
> Pass :: minutes match
> Pass :: seconds match
> Pass :: hours date
> FAIL :: last is less
> ...

It's not a bug in the library -- your machine is too fast. The test is, as
much as anything, a test that the clock on the machine provides monotonically
increasing values. So there's 3 possible solutions. 1) Change the test to
use >= in the time comparisons, 2) increase the number of loops between
measurements, or 3) ignore it.

Jeff


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk