tests: Avoid race condition in flow monitoring test.
authorBen Pfaff <blp@nicira.com>
Fri, 7 Dec 2012 15:38:11 +0000 (07:38 -0800)
committerBen Pfaff <blp@nicira.com>
Sat, 8 Dec 2012 18:24:28 +0000 (10:24 -0800)
commit90d721f0559c9d7df3a164728e88336f108e67b0
tree8fa8dbc8ebf60cf551cf9311acac2abf9a02196d
parent33d82a56df179219ccc3581437ca6e0c2d6b42ee
tests: Avoid race condition in flow monitoring test.

The execution of "ovs-appctl -t ovs-ofctl ofctl/send" could happen before
ovs-appctl received and printed the
    NXST_FLOW_MONITOR reply (xid=0x0):
     event=ADDED table=0 cookie=0 in_port=2 actions=output:1
msesage, which could cause the
    send: OFPT_FLOW_MOD: DEL priority=0 actions=drop
message to be printed before rather than after the NXST_FLOW_MONITOR reply.

This commit fixes the problem by inserting a serializing barrier.

Reported-by: Jarno Rajahalme <jarno.rajahalme@nsn.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/ofproto.at