summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/test/CMakeLists.txt1
-rw-r--r--host/test/ranges_test.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/host/test/CMakeLists.txt b/host/test/CMakeLists.txt
index fb9b98ac7..79b20cd47 100644
--- a/host/test/CMakeLists.txt
+++ b/host/test/CMakeLists.txt
@@ -51,6 +51,7 @@ ENDFOREACH(test_source)
# demo of a loadable module
########################################################################
ADD_LIBRARY(module_test MODULE module_test.cpp)
+TARGET_LINK_LIBRARIES(module_test uhd)
INSTALL(TARGETS
RUNTIME DESTINATION ${PKG_DATA_DIR}/tests
diff --git a/host/test/ranges_test.cpp b/host/test/ranges_test.cpp
index 68c339f41..5f6de4645 100644
--- a/host/test/ranges_test.cpp
+++ b/host/test/ranges_test.cpp
@@ -35,7 +35,7 @@ BOOST_AUTO_TEST_CASE(test_ranges_bounds){
BOOST_CHECK_CLOSE(mr.stop(), 60.0, tolerance);
BOOST_CHECK_CLOSE(mr.step(), 0.1, tolerance);
- BOOST_CHECK_EQUAL(mr.size(), 2);
+ BOOST_CHECK_EQUAL(mr.size(), unsigned(2));
BOOST_CHECK_CLOSE(mr[0].start(), -1.0, tolerance);
BOOST_CHECK_CLOSE(mr[0].stop(), +1.0, tolerance);