diff options
author | Michael West <michael.west@ettus.com> | 2013-10-28 13:08:31 -0700 |
---|---|---|
committer | Michael West <michael.west@ettus.com> | 2013-10-28 13:08:31 -0700 |
commit | 1d6975eac082f37824280772e16dac0f37adfa9f (patch) | |
tree | 993dd84c2c482338a197ad60d956ea724a18746d | |
parent | d5d18f87714bdf4f43c4b1a5fdcc7f62bfdee546 (diff) | |
download | uhd-1d6975eac082f37824280772e16dac0f37adfa9f.tar.gz uhd-1d6975eac082f37824280772e16dac0f37adfa9f.tar.bz2 uhd-1d6975eac082f37824280772e16dac0f37adfa9f.zip |
CID 1104332: Restored ostream format.
-rw-r--r-- | host/tests/time_spec_test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/tests/time_spec_test.cpp b/host/tests/time_spec_test.cpp index 37a039cc5..c9b9652f9 100644 --- a/host/tests/time_spec_test.cpp +++ b/host/tests/time_spec_test.cpp @@ -117,6 +117,7 @@ BOOST_AUTO_TEST_CASE(test_time_error_irrational_rate) const uhd::time_spec_t ts = uhd::time_spec_t::from_ticks(tick_in, rate); const long long tick_out = ts.to_ticks(rate); const long long err = tick_in - tick_out; + std::streamsize precision = std::cout.precision(); std::cout << std::setprecision(18); std::cout << "time ............ " << ts.get_real_secs() << std::endl; @@ -124,6 +125,7 @@ BOOST_AUTO_TEST_CASE(test_time_error_irrational_rate) std::cout << "tick out ........ " << tick_out << std::endl; std::cout << "tick error ...... " << err << std::endl; std::cout << std::endl; + std::cout.precision(precision); BOOST_CHECK_EQUAL(err, (long long)(0)); } |