Make test compatible with old boost filesystem libraries.
authorCarl Hetherington <cth@carlh.net>
Mon, 26 Mar 2018 10:04:33 +0000 (11:04 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 26 Mar 2018 10:04:33 +0000 (11:04 +0100)
test/verify_test.cc

index 7d6ec357db5e830c8bc412b153d26360d3f20969..a036073050688d6d742ac5bd8998fbe2cc764f34 100644 (file)
@@ -61,7 +61,7 @@ BOOST_AUTO_TEST_CASE (verify_test1)
        boost::filesystem::remove_all ("build/test/verify_test1");
        boost::filesystem::create_directory ("build/test/verify_test1");
        for (boost::filesystem::directory_iterator i("test/ref/DCP/dcp_test1"); i != boost::filesystem::directory_iterator(); ++i) {
-               boost::filesystem::copy (i->path(), "build/test/verify_test1" / i->path().filename());
+               boost::filesystem::copy_file (i->path(), "build/test/verify_test1" / i->path().filename());
        }
 
        vector<boost::filesystem::path> directories;