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

dev at openvswitch.org dev at openvswitch.org
Fri Mar 2 19:03:06 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, branch-1.6 has been updated
       via  d7f817b4bd1ba2a8b737ce7be9221f5586d633af (commit)
      from  01f76032c6b2eb81df8cfbdb3a3cc0ae943d1d48 (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 d7f817b4bd1ba2a8b737ce7be9221f5586d633af
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=d7f817b4bd1ba2a8b737ce7be9221f5586d633af
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 use 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