tests: Allow some difference in rounding in timeval test.
authorJesse Gross <jesse@nicira.com>
Thu, 10 Jun 2010 23:35:34 +0000 (16:35 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 10 Jun 2010 23:37:14 +0000 (16:37 -0700)
commit02029a699a1642043ca50d90cf4a39949708426e
tree91c3106e798f54d277d14aa8c2686810dd198073
parentf4b6076acab233cfe02e7eaefdeafbb69dfae556
tests: Allow some difference in rounding in timeval test.

We now use a time source that provides nanosecond granularity.
However, our test uses gettimeofday() for comparision, which has
microsecond granularity.  In some cases this can lead to different
values depending on the rounding.  This allows us to be off by one
to prevent intermittent test failures.
tests/test-timeval.c