summaryrefslogtreecommitdiff
path: root/cpp/src/tests/client_test.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-07-23 12:29:17 +0000
committerGordon Sim <gsim@apache.org>2007-07-23 12:29:17 +0000
commit0db1af31320aa010c8e97da80000f7548d889068 (patch)
treece2cd8dba8cf46b685dcb626b31e25c17702c1a0 /cpp/src/tests/client_test.cpp
parent747ac26509e78ac9aa9120be02cd446ac99d21cd (diff)
downloadqpid-python-0db1af31320aa010c8e97da80000f7548d889068.tar.gz
Added initial 'execution-layer' to try out methods form the 0-10 execution class.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@558700 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/client_test.cpp')
-rw-r--r--cpp/src/tests/client_test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/tests/client_test.cpp b/cpp/src/tests/client_test.cpp
index 3b8a3a2ee6..cefc4338eb 100644
--- a/cpp/src/tests/client_test.cpp
+++ b/cpp/src/tests/client_test.cpp
@@ -35,6 +35,7 @@
#include "qpid/client/ClientMessage.h"
#include "qpid/client/MessageListener.h"
#include "qpid/sys/Monitor.h"
+#include "qpid/sys/Time.h"
using namespace qpid::client;
using namespace qpid::sys;
@@ -117,6 +118,11 @@ int main(int argc, char** argv)
msg.setData(data);
channel.publish(msg, exchange, "MyTopic");
if (opts.trace) std::cout << "Published message: " << data << std::endl;
+ if (opts.trace) {
+ std::cout << "Publication "
+ << (channel.synchWithServer(qpid::sys::TIME_SEC * 1) ? " DID " : " did NOT ")
+ << "complete" << std::endl;
+ }
{
Monitor::ScopedLock l(monitor);