summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2009-09-16 16:53:07 +0000
committerStephen D. Huston <shuston@apache.org>2009-09-16 16:53:07 +0000
commit683ef252beb5bc6e52b59592285d12ea44ef8f73 (patch)
tree26c6c05c9352ef02d5cb9feed94f3eb5599a32fc /cpp/src
parent0a908168f149bf7351b43b861fc07af3ea515a12 (diff)
downloadqpid-python-683ef252beb5bc6e52b59592285d12ea44ef8f73.tar.gz
Use qpid::sys::sleep() instead of naked sleep(); fixes build error on Windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@815876 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/tests/MessagingSessionTests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/MessagingSessionTests.cpp b/cpp/src/tests/MessagingSessionTests.cpp
index 4e69239842..f5a5420d3a 100644
--- a/cpp/src/tests/MessagingSessionTests.cpp
+++ b/cpp/src/tests/MessagingSessionTests.cpp
@@ -380,7 +380,7 @@ QPID_AUTO_TEST_CASE(testAvailable)
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);