summaryrefslogtreecommitdiff
path: root/test/test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.cc')
-rw-r--r--test/test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test.cc b/test/test.cc
index 22dea1fc4..be2cf1538 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -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;