Adjust disk/partition sizes to trigger another bug.
[dcpomatic.git] / test / disk_writer_test.cc
index 7d1df487340cdf5cb2555ecab60e689c0d5f38ed..a27da0c5f17999774e96e6ce4b60a888b077c039 100644 (file)
@@ -88,7 +88,7 @@ BOOST_AUTO_TEST_CASE (disk_writer_test1)
        /* Some arbitrary file size here */
        make_random_file (dcp / "foo", 1024 * 1024 * 32 - 6128);
 
-       dcpomatic::write (dcp, disk.string(), partition.string(), 0);
+       dcpomatic::write (dcp, disk.string(), partition.string(), nullptr);
 
        BOOST_CHECK_EQUAL (system("/sbin/e2fsck -fn build/test/disk_writer_test1.partition"), 0);
 
@@ -147,11 +147,11 @@ BOOST_AUTO_TEST_CASE (disk_writer_test2)
        cl.add(disk);
        cl.add(partition);
 
-       make_random_file(disk, 4LL * 1024LL * 1024LL * 1024LL);
-       make_random_file(partition, 4LL * 1024LL * 1024LL * 1024LL);
+       make_random_file(disk,      31043616768LL);
+       make_random_file(partition, 31043571712LL);
 
        auto const dcp = TestPaths::private_data() / "xm";
-       dcpomatic::write(dcp, disk.string(), partition.string(), 0);
+       dcpomatic::write(dcp, disk.string(), partition.string(), nullptr);
 
        BOOST_CHECK_EQUAL(system("/sbin/e2fsck -fn build/test/disk_writer_test2.partition"), 0);