Run all tests with lots of encoding threads.
[dcpomatic.git] / test / dcpomatic_time_test.cc
index 94d51503552f93018494b10c472644d33e1f7840..5b58c369b047fe3a9b05ae10777d819258d302d3 100644 (file)
@@ -31,6 +31,7 @@
 
 using std::list;
 using std::cout;
+using namespace dcpomatic;
 
 BOOST_AUTO_TEST_CASE (dcpomatic_time_test)
 {
@@ -316,6 +317,9 @@ BOOST_AUTO_TEST_CASE (dcpomatic_time_ceil_test)
 
        /* Check that rounding up to non-integer frame rates works */
        BOOST_CHECK_EQUAL (DCPTime(45312).ceil(29.976).get(), 48038);
+
+       /* Check another tricky case that used to fail */
+       BOOST_CHECK_EQUAL (DCPTime(212256039).ceil(23.976).get(), 212256256);
 }
 
 /* Straightforward test of DCPTime::floor */