[ovs-git] Open vSwitch: tests: Fix race condition waiting for monitor thread. (master)

dev at openvswitch.org dev at openvswitch.org
Mon Apr 28 03:03:12 UTC 2014


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  1335a8d578b03e276294b32df9702c2562705f22 (commit)
      from  28c5588e8e1a8d091c5d2275232c35f2968a97fa (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 1335a8d578b03e276294b32df9702c2562705f22
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=1335a8d578b03e276294b32df9702c2562705f22
Author: Joe Stringer <joestringer at nicira.com>
		
tests: Fix race condition waiting for monitor thread.
		
Occasionally, test #770 "ofproto-dpif - ofproto-dpif-monitor 1" would
fail, because the testsuite looked in the logs for evidence of a thread
being created, but it checked before vswitchd was able to spawn the
thread.

This patch fixes the race by modifying the commands that check for
creation/termination of threads to wait until they see the messages
instead.

Signed-off-by: Joe Stringer <joestringer at nicira.com>
Reviewed-by: YAMAMOTO Takashi <yamamoto at valinux.co.jp>


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

Summary of changes:
 tests/ofproto-dpif.at |   24 ++++++------------------
 1 file changed, 6 insertions(+), 18 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list