Author: shuston
Date: Mon Feb 2 22:11:20 2009
New Revision: 740121
URL: http://svn.apache.org/viewvc?rev=740121&view=rev
Log:
Use qpid sleep rather than CRT sleep to build on Windows
Modified:
qpid/trunk/qpid/cpp/src/tests/ClientSessionTest.cpp
Modified: qpid/trunk/qpid/cpp/src/tests/ClientSessionTest.cpp
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/ClientSessionTest.cpp?rev=740121&r1=740120&r2=740121&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/ClientSessionTest.cpp (original)
+++ qpid/trunk/qpid/cpp/src/tests/ClientSessionTest.cpp Mon Feb 2 22:11:20 2009
@@ -25,6 +25,7 @@
#include "qpid/sys/Monitor.h"
#include "qpid/sys/Thread.h"
#include "qpid/sys/Runnable.h"
+#include "qpid/sys/Time.h"
#include "qpid/client/Session.h"
#include "qpid/framing/TransferContent.h"
#include "qpid/framing/reply_exceptions.h"
@@ -223,7 +224,7 @@
void run()
{
- sleep(1);
+ qpid::sys::sleep(1);
fixture.session.messageTransfer(arg::content=Message("foo2", "getq"));
}
};
@@ -275,7 +276,7 @@
}
BOOST_CHECK_EQUAL(fix.session.queueQuery(string("my-queue")).getMessageCount(),
10u);
- sleep(2);
+ qpid::sys::sleep(2);
BOOST_CHECK_EQUAL(fix.session.queueQuery(string("my-queue")).getMessageCount(),
5u);
}
@@ -289,7 +290,7 @@
fix.session.messageTransfer(arg::content=m);
}
- ::usleep(300* 1000);
+ qpid::sys::usleep(300* 1000);
for (uint i = 0; i < 10; i++) {
if (i % 2) continue;
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]