aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-03-09 10:38:42 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-17 15:44:05 -0500
commit668a04befdc4ec43b2a6e86992c672ef5f8408e0 (patch)
tree67734ba32968831a5b4ea8dd59b7b2ab52e68d01 /host/tests
parent19f3c1203a42d9da3d7cb16c881fe2bbdc5ec0ce (diff)
downloaduhd-668a04befdc4ec43b2a6e86992c672ef5f8408e0.tar.gz
uhd-668a04befdc4ec43b2a6e86992c672ef5f8408e0.tar.bz2
uhd-668a04befdc4ec43b2a6e86992c672ef5f8408e0.zip
host: Update code base using clang-tidy
The checks from the new clang-tidy file are applied to the source tree using: $ find . -name "*.cpp" | sort -u | xargs \ --max-procs 8 --max-args 1 clang-tidy --format-style=file \ --fix -p /path/to/compile_commands.json Note: This is the same procedure as 107a49c0, but applied to all the new code since then.
Diffstat (limited to 'host/tests')
-rw-r--r--host/tests/rf_control_gain_profile_test.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/host/tests/rf_control_gain_profile_test.cpp b/host/tests/rf_control_gain_profile_test.cpp
index 90260be1c..292983cee 100644
--- a/host/tests/rf_control_gain_profile_test.cpp
+++ b/host/tests/rf_control_gain_profile_test.cpp
@@ -12,12 +12,11 @@ using namespace uhd::rfnoc::rf_control;
void test_profile_invariant(gain_profile_iface& gain_profile)
{
- BOOST_CHECK(gain_profile.get_gain_profile_names(0).size() > 0);
- for (auto& profile : gain_profile.get_gain_profile_names(0))
- {
- gain_profile.set_gain_profile(profile, 0);
- BOOST_CHECK(gain_profile.get_gain_profile(0) == profile);
- }
+ BOOST_CHECK(!gain_profile.get_gain_profile_names(0).empty());
+ for (auto& profile : gain_profile.get_gain_profile_names(0)) {
+ gain_profile.set_gain_profile(profile, 0);
+ BOOST_CHECK(gain_profile.get_gain_profile(0) == profile);
+ }
}
BOOST_AUTO_TEST_CASE(test_default_profile_get_set)