Use $HOME rather than hard-coded user name.
[dcpomatic.git] / test / 4k_test.cc
index 4db576cfc0d1db1f4c2aa464b2144b492242ab5c..9e80a6e27bb035c25e940fd8dccf3d9b060a57fc 100644 (file)
  */
 
 
-#include <boost/test/unit_test.hpp>
-#include "lib/film.h"
-#include "lib/ffmpeg_content.h"
 #include "lib/dcp_content_type.h"
-#include "lib/video_content.h"
-#include "lib/ratio.h"
 #include "lib/dcpomatic_log.h"
+#include "lib/ffmpeg_content.h"
+#include "lib/film.h"
+#include "lib/ratio.h"
+#include "lib/video_content.h"
 #include "test.h"
+#include <boost/test/unit_test.hpp>
 
 
-using std::shared_ptr;
 using std::make_shared;
 
 
@@ -65,5 +64,9 @@ BOOST_AUTO_TEST_CASE (fourk_test)
        boost::filesystem::path p (test_film_dir("4k_test"));
        p /= film->dcp_name ();
 
-       check_dcp ("test/data/4k_test", p.string());
+       /* This test is concerned with the image and its metadata, so we'll
+        * ignore any differences in sound between the DCP and the reference to
+        * avoid test failures for unrelated reasons.
+        */
+       check_dcp("test/data/4k_test", p.string(), true);
 }