[ovs-git] Open vSwitch: tests: Allow some difference in rounding in timeval test. (master)
dev at openvswitch.org
dev at openvswitch.org
Fri Jun 11 00:00:10 UTC 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".
The branch, master has been updated
via 02029a699a1642043ca50d90cf4a39949708426e (commit)
from f4b6076acab233cfe02e7eaefdeafbb69dfae556 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 02029a699a1642043ca50d90cf4a39949708426e
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=02029a699a1642043ca50d90cf4a39949708426e
Author: Jesse Gross <jesse at nicira.com>
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.
-----------------------------------------------------------------------
Summary of changes:
tests/test-timeval.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
hooks/post-receive
--
Open vSwitch
More information about the git
mailing list