diff options
author | Josh Blum <josh@joshknows.com> | 2011-11-03 19:28:43 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-12-16 10:53:26 -0800 |
commit | c490cdda00ebd7733c1633939b258225f3834e8e (patch) | |
tree | fb751c35c1578485f1891503be53fb56c4782f21 /host/tests/addr_test.cpp | |
parent | 4d2c1e06a96604e54b99c1871dbfecba1286bd8b (diff) | |
download | uhd-c490cdda00ebd7733c1633939b258225f3834e8e.tar.gz uhd-c490cdda00ebd7733c1633939b258225f3834e8e.tar.bz2 uhd-c490cdda00ebd7733c1633939b258225f3834e8e.zip |
uhd: allow device addr (from string) to parse empty values
Diffstat (limited to 'host/tests/addr_test.cpp')
-rw-r--r-- | host/tests/addr_test.cpp | 3 |
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(); |