mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-16 21:10:10 +00:00
uhd: fix async msg test to reflect new timeout api
This commit is contained in:
parent
8aac27fa3e
commit
445a5ca2c7
1 changed files with 3 additions and 5 deletions
|
|
@ -26,8 +26,6 @@
|
|||
|
||||
namespace po = boost::program_options;
|
||||
|
||||
static const size_t async_to_ms = 100;
|
||||
|
||||
/*!
|
||||
* Test that no messages are received:
|
||||
* Send a burst of many samples that will fragment internally.
|
||||
|
|
@ -52,7 +50,7 @@ void test_no_async_message(uhd::usrp::single_usrp::sptr sdev){
|
|||
);
|
||||
|
||||
uhd::async_metadata_t async_md;
|
||||
if (dev->recv_async_msg(async_md, async_to_ms)){
|
||||
if (dev->recv_async_msg(async_md)){
|
||||
std::cout << boost::format(
|
||||
"failed:\n"
|
||||
" Got unexpected event code 0x%x.\n"
|
||||
|
|
@ -88,7 +86,7 @@ void test_underflow_message(uhd::usrp::single_usrp::sptr sdev){
|
|||
);
|
||||
|
||||
uhd::async_metadata_t async_md;
|
||||
if (not dev->recv_async_msg(async_md, async_to_ms)){
|
||||
if (not dev->recv_async_msg(async_md)){
|
||||
std::cout << boost::format(
|
||||
"failed:\n"
|
||||
" Async message recv timed out.\n"
|
||||
|
|
@ -135,7 +133,7 @@ void test_time_error_message(uhd::usrp::single_usrp::sptr sdev){
|
|||
);
|
||||
|
||||
uhd::async_metadata_t async_md;
|
||||
if (not dev->recv_async_msg(async_md, async_to_ms)){
|
||||
if (not dev->recv_async_msg(async_md)){
|
||||
std::cout << boost::format(
|
||||
"failed:\n"
|
||||
" Async message recv timed out.\n"
|
||||
|
|
|
|||
Loading…
Reference in a new issue