aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-11-03 19:28:43 -0700
committerJosh Blum <josh@joshknows.com>2011-11-03 19:28:43 -0700
commitc086dd883e5c318dcdf8e654128abf671da90ec0 (patch)
tree8387598d7a512602d6f38998cc41c9a2384e5e0d /host/tests
parentf8d66fcfb14062283cdb0d0cbe4f77e2964ceb82 (diff)
downloaduhd-c086dd883e5c318dcdf8e654128abf671da90ec0.tar.gz
uhd-c086dd883e5c318dcdf8e654128abf671da90ec0.tar.bz2
uhd-c086dd883e5c318dcdf8e654128abf671da90ec0.zip
uhd: allow device addr (from string) to parse empty values
Diffstat (limited to 'host/tests')
-rw-r--r--host/tests/addr_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/tests/addr_test.cpp b/host/tests/addr_test.cpp
index 01a7ab607..cea2f224c 100644
--- a/host/tests/addr_test.cpp
+++ b/host/tests/addr_test.cpp
@@ -39,7 +39,8 @@ BOOST_AUTO_TEST_CASE(test_device_addr){
//load the device address with something
uhd::device_addr_t dev_addr;
dev_addr["key1"] = "val1";
- dev_addr["key2"] = "val2";
+ dev_addr["key1"] = "val1";
+ dev_addr["key3"] = "";
//convert to and from args string
std::cout << "Pretty Print: " << std::endl << dev_addr.to_pp_string();