diff options
author | Stephen D. Huston <shuston@apache.org> | 2009-09-16 16:53:07 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2009-09-16 16:53:07 +0000 |
commit | 683ef252beb5bc6e52b59592285d12ea44ef8f73 (patch) | |
tree | 26c6c05c9352ef02d5cb9feed94f3eb5599a32fc /cpp | |
parent | 0a908168f149bf7351b43b861fc07af3ea515a12 (diff) | |
download | qpid-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')
-rw-r--r-- | cpp/src/tests/MessagingSessionTests.cpp | 2 |
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); |