Back-port v2's rename and slight extension of FrameRateConversion.
[dcpomatic.git] / test / test.cc
index 6adb56e8f66d26da498921a880201ffbc1ca1595..be2cf15389949c9ead1d23f5804b65c1c50ab99e 100644 (file)
@@ -94,14 +94,14 @@ new_test_film (string name)
        return f;
 }
 
-static void
-check_file (string ref, string check)
+void
+check_file (boost::filesystem::path ref, boost::filesystem::path check)
 {
        uintmax_t N = boost::filesystem::file_size (ref);
        BOOST_CHECK_EQUAL (N, boost::filesystem::file_size(check));
-       FILE* ref_file = fopen (ref.c_str(), "rb");
+       FILE* ref_file = fopen_boost (ref, "rb");
        BOOST_CHECK (ref_file);
-       FILE* check_file = fopen (check.c_str(), "rb");
+       FILE* check_file = fopen_boost (check, "rb");
        BOOST_CHECK (check_file);
        
        int const buffer_size = 65536;
@@ -127,9 +127,11 @@ check_file (string ref, string check)
 }
 
 static void
-note (libdcp::NoteType, string n)
+note (libdcp::NoteType t, string n)
 {
-       cout << n << "\n";
+       if (t == libdcp::ERROR) {
+               cerr << n << "\n";
+       }
 }
 
 void