From d4ca69984701bda2299186140c7b551f19f9b550 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 24 Jun 2011 16:09:22 -0700 Subject: uhd: print the exception so e gets used (avoid MSVC warning) --- host/tests/error_test.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/tests') 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); } -- cgit v1.2.3