From 0ac0b04755a3b3f99a8fddbf5aadd8dd4f071268 Mon Sep 17 00:00:00 2001 From: Doron Somech Date: Wed, 26 Nov 2014 15:53:50 +0200 Subject: [PATCH] remove debug printf in test_xpub_welcome_msg --- tests/test_xpub_welcome_msg.cpp | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/tests/test_xpub_welcome_msg.cpp b/tests/test_xpub_welcome_msg.cpp index df9c9784..7cc7de97 100644 --- a/tests/test_xpub_welcome_msg.cpp +++ b/tests/test_xpub_welcome_msg.cpp @@ -38,27 +38,26 @@ int main (void) // Create a subscriber void *sub = zmq_socket (ctx, ZMQ_SUB); - // Subscribe to the welcome message - rc = zmq_setsockopt(sub, ZMQ_SUBSCRIBE, "W", 1); - assert(rc == 0); + // Subscribe to the welcome message + rc = zmq_setsockopt(sub, ZMQ_SUBSCRIBE, "W", 1); + assert(rc == 0); assert (sub); rc = zmq_connect (sub, "inproc://soname"); assert (rc == 0); - char buffer[2]; + char buffer[2]; - // Receive the welcome subscription - rc = zmq_recv(pub, buffer, 2, 0); - assert(rc == 2); - assert(buffer[0] == 1); - assert(buffer[1] == 'W'); + // Receive the welcome subscription + rc = zmq_recv(pub, buffer, 2, 0); + assert(rc == 2); + assert(buffer[0] == 1); + assert(buffer[1] == 'W'); - // Receive the welcome message - rc = zmq_recv(sub, buffer, 1, 0); - printf("%d\n", rc); - assert(rc == 1); - assert(buffer[0] == 'W'); + // Receive the welcome message + rc = zmq_recv(sub, buffer, 1, 0); + assert(rc == 1); + assert(buffer[0] == 'W'); // Clean up. rc = zmq_close (pub);