From 683ef252beb5bc6e52b59592285d12ea44ef8f73 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Wed, 16 Sep 2009 16:53:07 +0000 Subject: 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 --- cpp/src/tests/MessagingSessionTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/tests') 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); -- cgit v1.2.1