diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-12 01:37:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-04-12 01:37:00 +0100 |
| commit | 4b8c626b7e66ab1d4d69606e10316542c8873842 (patch) | |
| tree | 94140f93b3911196ab60866fefb5c9f807a7a2ab /test/make_digest_test.cc | |
| parent | 4b8eee1359d817937b84df7e88126fa16040e5c9 (diff) | |
Add direction support for SMPTE subtitles; fix pragma warnings with non-openmp builds.
Diffstat (limited to 'test/make_digest_test.cc')
| -rw-r--r-- | test/make_digest_test.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/test/make_digest_test.cc b/test/make_digest_test.cc index 4614911e..b7e18a12 100644 --- a/test/make_digest_test.cc +++ b/test/make_digest_test.cc @@ -22,7 +22,6 @@ #include <boost/bind.hpp> #include <boost/test/unit_test.hpp> #include <sys/time.h> -#include <iostream> void progress (float) { @@ -43,13 +42,5 @@ BOOST_AUTO_TEST_CASE (make_digest_test) data.write ("build/test/random"); /* Hash it */ - struct timeval A; - gettimeofday (&A, 0); - for (int i = 0; i < 64; ++i) { - BOOST_CHECK_EQUAL (dcp::make_digest ("build/test/random", boost::bind (&progress, _1)), "GKbk/V3fcRtP5MaPdSmAGNbKkaU="); - } - struct timeval B; - gettimeofday (&B, 0); - - std::cout << ((B.tv_sec + B.tv_usec / 1e6) - (A.tv_sec + A.tv_usec / 1e6)) << "\n"; + BOOST_CHECK_EQUAL (dcp::make_digest ("build/test/random", boost::bind (&progress, _1)), "GKbk/V3fcRtP5MaPdSmAGNbKkaU="); } |
