From 65af3c3394bb94f82a005796d946776c08a20275 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 10 Dec 2021 15:54:45 +0100 Subject: rfnoc: Fix block_id::get_tree_root() The path it returned was only valid in UHD 3. Added unit test to confirm. --- host/tests/block_id_test.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/tests') diff --git a/host/tests/block_id_test.cpp b/host/tests/block_id_test.cpp index cf819300a..43c1ef680 100644 --- a/host/tests/block_id_test.cpp +++ b/host/tests/block_id_test.cpp @@ -6,6 +6,7 @@ // #include +#include #include #include #include @@ -37,6 +38,7 @@ BOOST_AUTO_TEST_CASE(test_block_id) BOOST_CHECK_EQUAL(block_id.get_device_no(), 0); BOOST_CHECK_EQUAL(block_id.get_block_name(), "FFT"); BOOST_CHECK_EQUAL(block_id.get_block_count(), 1); + BOOST_CHECK_EQUAL(block_id.get_tree_root(), "/blocks/0/FFT#1"); block_id.set_device_no(17); BOOST_CHECK_EQUAL(block_id.get_device_no(), 17); -- cgit v1.2.3