ovs-ofctl: Make "barrier" output reproducible for testing.
authorBen Pfaff <blp@nicira.com>
Wed, 7 Mar 2012 22:46:14 +0000 (14:46 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 7 Mar 2012 22:47:24 +0000 (14:47 -0800)
commitc27c4460e506a830a35dab99606cb74ac25df5b9
tree04abb12e4e661916809c7ffe1dbed4727f8b0088
parent7cde6a8a537575e074caef397e54d35a7d812bcf
ovs-ofctl: Make "barrier" output reproducible for testing.

The "ofproto - asynchronous message control" test had a race in which
the "send: OFPT_BARRIER_REQUEST" message could get printed in different
places because there was nothing to ensure that messages from the switch
were printed before messages sent to the switch, even though the actual
ordering of the messages was predictable.  This fixes the problem by not
printing a message at all when the barrier request is sent.

Bug #10049.
Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/ofproto.at
utilities/ovs-ofctl.c