qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shus...@apache.org
Subject svn commit: r815876 - /qpid/trunk/qpid/cpp/src/tests/MessagingSessionTests.cpp
Date Wed, 16 Sep 2009 16:53:07 GMT
Author: shuston
Date: Wed Sep 16 16:53:07 2009
New Revision: 815876

URL: http://svn.apache.org/viewvc?rev=815876&view=rev
Log:
Use qpid::sys::sleep() instead of naked sleep(); fixes build error on Windows

Modified:
    qpid/trunk/qpid/cpp/src/tests/MessagingSessionTests.cpp

Modified: qpid/trunk/qpid/cpp/src/tests/MessagingSessionTests.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/MessagingSessionTests.cpp?rev=815876&r1=815875&r2=815876&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/MessagingSessionTests.cpp (original)
+++ qpid/trunk/qpid/cpp/src/tests/MessagingSessionTests.cpp Wed Sep 16 16:53:07 2009
@@ -380,7 +380,7 @@
     for (uint i = 0; i < 5; ++i) {
         s2.send(Message((boost::format("B_%1%") % (i+1)).str()));
     }
-    sleep(1);//is there any avoid an arbitrary sleep while waiting for messages to be dispatched?
+    qpid::sys::sleep(1);//is there any avoid an arbitrary sleep while waiting for messages
to be dispatched?
     for (uint i = 0; i < 5; ++i) {
         BOOST_CHECK_EQUAL(fix.session.available(), 15u - 2*i);
         BOOST_CHECK_EQUAL(r1.available(), 10u - i);



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message