[asterisk-scf-commits] asterisk-scf/integration/media_rtp_pjmedia.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Aug 18 10:57:51 CDT 2010
branch "master" has been updated
via ce6ce8c31f4a4c0bd8662293fda85269c36d562f (commit)
from 0acd3bd9fbb4276ef16e7e1d582c43138f49d105 (commit)
Summary of changes:
test/CMakeLists.txt | 2 +-
test/TestRTPpjmedia.cpp | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit ce6ce8c31f4a4c0bd8662293fda85269c36d562f
Author: Joshua Colp <jcolp at digium.com>
Date: Wed Aug 18 12:55:27 2010 -0300
Use a portable method for sleeping.
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 0234733..98ed2ca 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -2,6 +2,6 @@ hydra_component_init(media_rtp_pjmedia_test CXX)
hydra_component_add_file(media_rtp_pjmedia_test TestRTPpjmedia.cpp)
hydra_component_add_slice(media_rtp_pjmedia_test MediaIf)
hydra_component_add_slice(media_rtp_pjmedia_test MediaRTPIf)
-hydra_component_add_boost_libraries(media_rtp_pjmedia_test unit_test_framework)
+hydra_component_add_boost_libraries(media_rtp_pjmedia_test unit_test_framework thread)
hydra_component_build_standalone(media_rtp_pjmedia_test)
hydra_component_install(media_rtp_pjmedia_test RUNTIME bin "PJmedia RTP Media Test Driver." Core)
diff --git a/test/TestRTPpjmedia.cpp b/test/TestRTPpjmedia.cpp
index 48b76be..db34eea 100644
--- a/test/TestRTPpjmedia.cpp
+++ b/test/TestRTPpjmedia.cpp
@@ -4,6 +4,7 @@
#include <boost/test/unit_test.hpp>
#include <boost/test/debug.hpp>
+#include <boost/thread/thread.hpp>
#include <Ice/Ice.h>
@@ -555,7 +556,7 @@ BOOST_AUTO_TEST_CASE(TransmitandReceiveFrame)
/* In order to have the packet get sent and received we need to introduce a delay here, thus
* why it exists.
*/
- sleep(1);
+ boost::this_thread::sleep(boost::posix_time::seconds(1));
/* We only sent a single frame, so we should only get a single frame. */
AudioFramePtr received_frame;
-----------------------------------------------------------------------
--
asterisk-scf/integration/media_rtp_pjmedia.git
More information about the asterisk-scf-commits
mailing list