aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/graph.hpp
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/graph.hpp
parentf386a2805b1cda04eef8c2ba1a3c680edf28c2a6 (diff)
parent9517de45709adaea8b574011573a565007149d5d (diff)
downloaduhd-248377a1db9f2761fd984528cde11ab66555ebfb.tar.gz
uhd-248377a1db9f2761fd984528cde11ab66555ebfb.tar.bz2
uhd-248377a1db9f2761fd984528cde11ab66555ebfb.zip
Merge branch 'maint'
Diffstat (limited to 'host/tests/graph.hpp')
-rw-r--r--host/tests/graph.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/host/tests/graph.hpp b/host/tests/graph.hpp
index 0c2be0347..894c436b3 100644
--- a/host/tests/graph.hpp
+++ b/host/tests/graph.hpp
@@ -43,8 +43,10 @@ private:
void connect_nodes(uhd::rfnoc::source_node_ctrl::sptr A, uhd::rfnoc::sink_node_ctrl::sptr B)
{
- A->connect_downstream(B);
- B->connect_upstream(A);
+ const size_t actual_src_port = A->connect_downstream(B);
+ const size_t actual_dst_port = B->connect_upstream(A);
+ A->set_downstream_port(actual_src_port, actual_dst_port);
+ B->set_upstream_port(actual_dst_port, actual_src_port);
}
#endif /* INCLUDED_TEST_GRAPH_HPP */