aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-02-05 11:36:17 -0800
committerJosh Blum <josh@joshknows.com>2010-02-05 11:36:17 -0800
commit89152d1ffe452438db46932ebc62d5ccc5b79208 (patch)
tree47c261e35669fbc8a5e0dd0a1a9db63bcd1a5964 /test
parentbff701727b268a87900b5f8445847a3920c23541 (diff)
downloaduhd-89152d1ffe452438db46932ebc62d5ccc5b79208.tar.gz
uhd-89152d1ffe452438db46932ebc62d5ccc5b79208.tar.bz2
uhd-89152d1ffe452438db46932ebc62d5ccc5b79208.zip
Made get_link the only way to create nested props.
Removed the obj::ptr and sptr typedefs. The dboard manager now must store not the subdevs, but their proxies.
Diffstat (limited to 'test')
-rw-r--r--test/usrp_dboard_test.cpp4
-rw-r--r--test/wax_test.cpp2
2 files changed, 2 insertions, 4 deletions
diff --git a/test/usrp_dboard_test.cpp b/test/usrp_dboard_test.cpp
index 60a10a384..5bd086dc1 100644
--- a/test/usrp_dboard_test.cpp
+++ b/test/usrp_dboard_test.cpp
@@ -55,6 +55,6 @@ BOOST_AUTO_TEST_CASE(test_manager){
std::cout << "Testing access (will fail later when db code filled in)..." << std::endl;
BOOST_CHECK_THROW(mgr0->get_rx_subdev(""), std::invalid_argument);
BOOST_CHECK_THROW(mgr0->get_tx_subdev("x"), std::invalid_argument);
- (*mgr0->get_rx_subdev("a"))[NULL];
- (*mgr0->get_tx_subdev(""))[NULL];
+ mgr0->get_rx_subdev("a")[NULL];
+ mgr0->get_tx_subdev("")[NULL];
}
diff --git a/test/wax_test.cpp b/test/wax_test.cpp
index b329788f2..de66a9f64 100644
--- a/test/wax_test.cpp
+++ b/test/wax_test.cpp
@@ -71,8 +71,6 @@ BOOST_AUTO_TEST_CASE(test_chaining){
wd[size_t(0)][size_t(0)];
std::cout << "chain 3" << std::endl;
wd[size_t(0)][size_t(0)][size_t(0)];
- std::cout << "cast proxy with link" << std::endl;
- wax::cast<wax::obj::ptr>(wd[size_t(0)][size_t(0)]);
}
BOOST_AUTO_TEST_CASE(test_set_get){