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>
AT_FAIL_IF([test X"$1" != X])
ovs-appctl -t ovs-ofctl ofctl/barrier
- echo >>expout "send: OFPT_BARRIER_REQUEST:
-OFPT_BARRIER_REPLY:"
+ echo >>expout "OFPT_BARRIER_REPLY:"
AT_CHECK(
[[sed '
}
msg = ofputil_encode_barrier_request();
- fprintf(stderr, "send: ");
- ofp_print(stderr, msg->data, msg->size, verbosity);
-
error = vconn_send_block(aux->vconn, msg);
if (error) {
ofpbuf_delete(msg);