aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/rfnoc_property_test.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-03-02 15:25:13 -0800
committeratrnati <54334261+atrnati@users.noreply.github.com>2020-03-03 08:51:32 -0600
commit876d4150aa3da531ddd687b48afada6e43f79146 (patch)
treefd72a71419f4cd800d4e500cfcaded4dfc8dc367 /host/tests/rfnoc_property_test.cpp
parent1393553d623bdf4ba40d5435c9719b6ce990d9ac (diff)
downloaduhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.gz
uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.bz2
uhd-876d4150aa3da531ddd687b48afada6e43f79146.zip
uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against.
Diffstat (limited to 'host/tests/rfnoc_property_test.cpp')
-rw-r--r--host/tests/rfnoc_property_test.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/host/tests/rfnoc_property_test.cpp b/host/tests/rfnoc_property_test.cpp
index 7e5af20a2..eb22424b1 100644
--- a/host/tests/rfnoc_property_test.cpp
+++ b/host/tests/rfnoc_property_test.cpp
@@ -4,8 +4,8 @@
// SPDX-License-Identifier: GPL-3.0-or-later
//
-#include <uhd/rfnoc/property.hpp>
#include <uhd/rfnoc/dirtifier.hpp>
+#include <uhd/rfnoc/property.hpp>
#include <uhdlib/rfnoc/prop_accessor.hpp>
#include <boost/test/unit_test.hpp>
#include <iostream>
@@ -25,7 +25,7 @@ BOOST_AUTO_TEST_CASE(test_res_source_info)
BOOST_CHECK_EQUAL(S2.instance, 5);
// Check initializer
- auto src_info_printer = [](res_source_info rsi){
+ auto src_info_printer = [](res_source_info rsi) {
std::cout << static_cast<int>(rsi.type) << "::" << rsi.instance << std::endl;
};
src_info_printer({res_source_info::OUTPUT_EDGE, 5});
@@ -94,7 +94,8 @@ BOOST_AUTO_TEST_CASE(test_access)
// Now test the scoped access mode
{
- auto access_lock = prop_accessor.get_scoped_prop_access(prop_i, property_base_t::RW, property_base_t::NONE);
+ auto access_lock = prop_accessor.get_scoped_prop_access(
+ prop_i, property_base_t::RW, property_base_t::NONE);
prop_i.set(42);
BOOST_CHECK_EQUAL(prop_i.get(), 42);
}
@@ -145,8 +146,10 @@ BOOST_AUTO_TEST_CASE(test_dirtifier)
prop_accessor.mark_clean(dirtifier);
BOOST_CHECK(dirtifier.is_dirty());
property_t<int> prop_i{"int_prop", 5, {res_source_info::USER}};
- BOOST_REQUIRE_THROW(prop_accessor.forward<false>(&dirtifier, &prop_i), uhd::type_error);
- BOOST_REQUIRE_THROW(prop_accessor.forward<false>(&prop_i, &dirtifier), uhd::type_error);
+ BOOST_REQUIRE_THROW(
+ prop_accessor.forward<false>(&dirtifier, &prop_i), uhd::type_error);
+ BOOST_REQUIRE_THROW(
+ prop_accessor.forward<false>(&prop_i, &dirtifier), uhd::type_error);
BOOST_CHECK(!prop_accessor.are_compatible(&prop_i, &dirtifier));
BOOST_CHECK(!prop_accessor.are_compatible(&dirtifier, &prop_i));
}