summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-24 16:09:22 -0700
committerJosh Blum <josh@joshknows.com>2011-06-24 16:09:22 -0700
commitd4ca69984701bda2299186140c7b551f19f9b550 (patch)
tree95d026734acbe1227167d22521f1106f21213de2
parent09ed8e69312cebe31b69af4f42a3b0417774cf04 (diff)
downloaduhd-d4ca69984701bda2299186140c7b551f19f9b550.tar.gz
uhd-d4ca69984701bda2299186140c7b551f19f9b550.tar.bz2
uhd-d4ca69984701bda2299186140c7b551f19f9b550.zip
uhd: print the exception so e gets used (avoid MSVC warning)
-rw-r--r--host/tests/error_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/tests/error_test.cpp b/host/tests/error_test.cpp
index 69437e732..3d784b1f7 100644
--- a/host/tests/error_test.cpp
+++ b/host/tests/error_test.cpp
@@ -77,12 +77,15 @@ BOOST_AUTO_TEST_CASE(test_exception_dynamic){
exception_clone->dynamic_throw();
}
catch(const uhd::assertion_error &e){
+ std::cout << e.what() << std::endl;
BOOST_CHECK(false);
}
catch(const uhd::runtime_error &e){
+ std::cout << e.what() << std::endl;
BOOST_CHECK(true);
}
catch(const uhd::exception &e){
+ std::cout << e.what() << std::endl;
BOOST_CHECK(false);
}