Disable test for setting the creation time under Unix.
Also document that this doesn't work there. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1260,6 +1260,10 @@ public:
|
|||||||
/**
|
/**
|
||||||
Sets the file creation and last access/modification times (any of the pointers
|
Sets the file creation and last access/modification times (any of the pointers
|
||||||
may be @NULL).
|
may be @NULL).
|
||||||
|
|
||||||
|
Notice that the file creation time can't be changed under Unix, so @a
|
||||||
|
dtCreate is ignored there (but @true is still returned). Under Windows
|
||||||
|
all three times can be set.
|
||||||
*/
|
*/
|
||||||
bool SetTimes(const wxDateTime* dtAccess,
|
bool SetTimes(const wxDateTime* dtAccess,
|
||||||
const wxDateTime* dtMod,
|
const wxDateTime* dtMod,
|
||||||
|
@@ -685,7 +685,11 @@ void FileNameTestCase::TestSetTimes()
|
|||||||
CPPUNIT_ASSERT( fn.GetTimes(&dtAccess2, &dtModify2, &dtCreate2) );
|
CPPUNIT_ASSERT( fn.GetTimes(&dtAccess2, &dtModify2, &dtCreate2) );
|
||||||
CPPUNIT_ASSERT_EQUAL( dtAccess, dtAccess2 );
|
CPPUNIT_ASSERT_EQUAL( dtAccess, dtAccess2 );
|
||||||
CPPUNIT_ASSERT_EQUAL( dtModify, dtModify2 );
|
CPPUNIT_ASSERT_EQUAL( dtModify, dtModify2 );
|
||||||
|
|
||||||
|
// Under Unix the creation time can't be set.
|
||||||
|
#ifdef __WINDOWS__
|
||||||
CPPUNIT_ASSERT_EQUAL( dtCreate, dtCreate2 );
|
CPPUNIT_ASSERT_EQUAL( dtCreate, dtCreate2 );
|
||||||
|
#endif // __WINDOWS__
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileNameTestCase::TestExists()
|
void FileNameTestCase::TestExists()
|
||||||
|
Reference in New Issue
Block a user