From 346d178a06b5dc1c4065450e988f9934390c561c Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 23 Jul 2007 12:29:17 +0000 Subject: 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@558700 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/client_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qpid/cpp/src/tests/client_test.cpp') diff --git a/qpid/cpp/src/tests/client_test.cpp b/qpid/cpp/src/tests/client_test.cpp index 3b8a3a2ee6..cefc4338eb 100644 --- a/qpid/cpp/src/tests/client_test.cpp +++ b/qpid/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); -- cgit v1.2.1