aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/tick_node_test.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-10-26 17:28:00 -0700
committerMartin Braun <martin.braun@ettus.com>2016-10-26 17:28:00 -0700
commit248377a1db9f2761fd984528cde11ab66555ebfb (patch)
tree1c638c0affb9b3154d288b74428cd5a912edd24a /host/tests/tick_node_test.cpp
parentf386a2805b1cda04eef8c2ba1a3c680edf28c2a6 (diff)
parent9517de45709adaea8b574011573a565007149d5d (diff)
downloaduhd-248377a1db9f2761fd984528cde11ab66555ebfb.tar.gz
uhd-248377a1db9f2761fd984528cde11ab66555ebfb.tar.bz2
uhd-248377a1db9f2761fd984528cde11ab66555ebfb.zip
Merge branch 'maint'
Diffstat (limited to 'host/tests/tick_node_test.cpp')
-rw-r--r--host/tests/tick_node_test.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/host/tests/tick_node_test.cpp b/host/tests/tick_node_test.cpp
index fc1b8c544..6b150953b 100644
--- a/host/tests/tick_node_test.cpp
+++ b/host/tests/tick_node_test.cpp
@@ -60,6 +60,8 @@ BOOST_AUTO_TEST_CASE(test_simplest_downstream_search)
// Simplest possible scenario: Connect B downstream of A and let
// it find B
connect_nodes(node_A, node_B);
+ node_A->set_tx_streamer(true, 0);
+ node_B->set_rx_streamer(true, 0);
double result_rate = node_A->get_tick_rate();
BOOST_CHECK_EQUAL(result_rate, test_rate);
@@ -72,12 +74,13 @@ BOOST_AUTO_TEST_CASE(test_both_ways_search)
MAKE_TICK_NODE(node_B);
MAKE_TICK_SETTING_NODE(node_C, test_rate);
- std::cout << "a->b" << std::endl;
connect_nodes(node_A, node_B);
- std::cout << "b->a" << std::endl;
connect_nodes(node_B, node_C);
+ node_A->set_tx_streamer(true, 0);
+ node_B->set_tx_streamer(true, 0);
+ node_B->set_rx_streamer(true, 0);
+ node_C->set_rx_streamer(true, 0);
- std::cout << "search" << std::endl;
double result_rate = node_B->get_tick_rate();
BOOST_CHECK_EQUAL(result_rate, test_rate);
}
@@ -91,6 +94,10 @@ BOOST_AUTO_TEST_CASE(test_both_ways_search_reversed)
connect_nodes(node_A, node_B);
connect_nodes(node_B, node_C);
+ node_A->set_tx_streamer(true, 0);
+ node_B->set_tx_streamer(true, 0);
+ node_B->set_rx_streamer(true, 0);
+ node_C->set_rx_streamer(true, 0);
double result_rate = node_B->get_tick_rate();
BOOST_CHECK_EQUAL(result_rate, test_rate);
@@ -105,6 +112,10 @@ BOOST_AUTO_TEST_CASE(test_both_ways_search_fail)
connect_nodes(node_A, node_B);
connect_nodes(node_B, node_C);
+ node_A->set_tx_streamer(true, 0);
+ node_B->set_tx_streamer(true, 0);
+ node_B->set_rx_streamer(true, 0);
+ node_C->set_rx_streamer(true, 0);
BOOST_CHECK_THROW(node_B->get_tick_rate(), uhd::runtime_error);
}