[ovs-git] Open vSwitch: timeval: Add "time/stop" unixctl command, for use in unit tests. (master)

dev at openvswitch.org dev at openvswitch.org
Wed Feb 29 01:14:40 UTC 2012


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  f802352d41e377f3e68614202c8e9cef5ce862f2 (commit)
      from  5e0c05bc058c78a11be6747f62e6ad88e5d06b70 (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 f802352d41e377f3e68614202c8e9cef5ce862f2
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=f802352d41e377f3e68614202c8e9cef5ce862f2
Author: Ben Pfaff <blp at nicira.com>
		
timeval: Add "time/stop" unixctl command, for use in unit tests.
		
Although we try to avoid it, some unit tests are necessarily
timing-sensitive.  The new "time/stop" command that this commit adds should
help with that, by preventing time from advancing from the viewpoint of
the OVS "timeval" functions except when "time/warp" explicitly advances
the current time.  This should allow the unit tests that need it to become
reproducible regardless of the speed at which the tests run.

This commit adds one unit of "time/stop" to the unit test suite, in the one
timing-sensitive test of which I am currently aware.

Bug #9782.
Reported-by: Tim Chen <tchen at nicira.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 lib/timeval.c         |   41 +++++++++++++++++++++++++++++++----------
 tests/ofproto-dpif.at |    1 +
 2 files changed, 32 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list