tests: Fix race condition waiting for monitor thread.
authorJoe Stringer <joestringer@nicira.com>
Sun, 27 Apr 2014 23:51:28 +0000 (11:51 +1200)
committerJoe Stringer <joestringer@nicira.com>
Mon, 28 Apr 2014 02:14:55 +0000 (14:14 +1200)
commit1335a8d578b03e276294b32df9702c2562705f22
treef34767eac38806759005c89dec5667c80db551a9
parent28c5588e8e1a8d091c5d2275232c35f2968a97fa
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@nicira.com>
Reviewed-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
tests/ofproto-dpif.at