From bc8aaf3952f1c192030d1c9a0b6ddcbe14d9c062 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 29 Jun 2011 13:57:06 -0700 Subject: uhd: misc tweaks and also msvc compile --- host/tests/property_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/tests') diff --git a/host/tests/property_test.cpp b/host/tests/property_test.cpp index 20f6b6924..4c1aa046c 100644 --- a/host/tests/property_test.cpp +++ b/host/tests/property_test.cpp @@ -46,6 +46,11 @@ struct getter_type{ BOOST_AUTO_TEST_CASE(test_prop_simple){ uhd::property_tree::sptr tree = uhd::property_tree::make(); uhd::property &prop = tree->create("/"); + + BOOST_CHECK(prop.empty()); + prop.set(0); + BOOST_CHECK(not prop.empty()); + prop.set(42); BOOST_CHECK_EQUAL(prop.get(), 42); prop.set(34); @@ -72,8 +77,10 @@ BOOST_AUTO_TEST_CASE(test_prop_with_publisher){ uhd::property_tree::sptr tree = uhd::property_tree::make(); uhd::property &prop = tree->create("/"); + BOOST_CHECK(prop.empty()); getter_type getter; prop.publish(boost::bind(&getter_type::doit, &getter)); + BOOST_CHECK(not prop.empty()); getter._x = 42; prop.set(0); //should not change -- cgit v1.2.3