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;
}
static void
-note (libdcp::NoteType, string n)
+note (libdcp::NoteType t, string n)
{
- cout << n << "\n";
+ if (t == libdcp::ERROR) {
+ cerr << n << "\n";
+ }
}
void