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 | 9d1ab7d4f6a28fed66ecde80c7137df81abf6309 (patch) | |
| tree | 1d50ca1f457b6c25fb3a318a30b6063095ba6719 /qpid/cpp/src | |
| parent | f12c10082f0cc95f53847b55b22c3f4476fea8a4 (diff) | |
| download | qpid-python-9d1ab7d4f6a28fed66ecde80c7137df81abf6309.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@815876 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/tests/MessagingSessionTests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/MessagingSessionTests.cpp b/qpid/cpp/src/tests/MessagingSessionTests.cpp index 4e69239842..f5a5420d3a 100644 --- a/qpid/cpp/src/tests/MessagingSessionTests.cpp +++ b/qpid/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); |
