summaryrefslogtreecommitdiff
path: root/libs/pbd/test/filesystem_test.h
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2014-06-24 17:05:45 +1000
committerPaul Davis <paul@linuxaudiosystems.com>2014-06-25 12:40:11 -0400
commit7338c4e242f9448668238d26d9f64c46e4ace737 (patch)
tree31233a6099bc8606fddcb1ce09eb11627a56b019 /libs/pbd/test/filesystem_test.h
parent94d8dfa2566b401ccbfb7ce85dd01079b8c3db6d (diff)
Add test for PBD::copy_file
From this I can see that PBD::copy_file is not working correctly on windows as it is adding windows style line endings. Adding O_BINARY to ::open flags would fix it, but perhaps there is a better way...
Diffstat (limited to 'libs/pbd/test/filesystem_test.h')
-rw-r--r--libs/pbd/test/filesystem_test.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/pbd/test/filesystem_test.h b/libs/pbd/test/filesystem_test.h
index 57f26631d0..f25d3abbc8 100644
--- a/libs/pbd/test/filesystem_test.h
+++ b/libs/pbd/test/filesystem_test.h
@@ -5,10 +5,12 @@ class FilesystemTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE (FilesystemTest);
CPPUNIT_TEST (testPathIsWithin);
+ CPPUNIT_TEST (testCopyFile);
CPPUNIT_TEST_SUITE_END ();
public:
void testPathIsWithin ();
+ void testCopyFile ();
};