summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-14 10:46:05 -0800
committerJosh Blum <josh@joshknows.com>2011-01-14 10:46:05 -0800
commit7121576fff68993fceb5c064d788fa5dcd0aa7e0 (patch)
tree6c06c4583bc22bce1bd1deecbfa5d3e25527d9c2 /host
parent7d64b9f4794013b3a20fb1d79b3805e3bd4f3b35 (diff)
downloaduhd-7121576fff68993fceb5c064d788fa5dcd0aa7e0.tar.gz
uhd-7121576fff68993fceb5c064d788fa5dcd0aa7e0.tar.bz2
uhd-7121576fff68993fceb5c064d788fa5dcd0aa7e0.zip
uhd: tweaks that make macos happy
Diffstat (limited to 'host')
-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);