Add test to libpbd to check PBD::touch_file and pbd/gstdio_compat.h

GStatBuf is not usable on 32 bit Windows without the redefinition in
pbd/gstdio_compat.h so add a test to check for the correct behavior of
g_stat and g_utime on all platforms now that the issue is fixed.
This commit is contained in:
Tim Mayberry 2015-09-17 15:13:16 +10:00
parent 95b55c7346
commit e44212321e
2 changed files with 80 additions and 0 deletions

View file

@ -12,6 +12,8 @@ class FilesystemTest : public CppUnit::TestFixture
CPPUNIT_TEST (testClearDirectory);
CPPUNIT_TEST (testRemoveDirectory);
CPPUNIT_TEST (testCanonicalPath);
CPPUNIT_TEST (testTouchFile);
CPPUNIT_TEST (testStatFile);
CPPUNIT_TEST_SUITE_END ();
public:
@ -23,5 +25,7 @@ public:
void testClearDirectory ();
void testRemoveDirectory ();
void testCanonicalPath ();
void testTouchFile ();
void testStatFile ();
};