]> git.saurik.com Git - wxWidgets.git/commitdiff
Disable test for setting the creation time under Unix.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jul 2013 19:14:20 +0000 (19:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jul 2013 19:14:20 +0000 (19:14 +0000)
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

interface/wx/filename.h
tests/filename/filenametest.cpp

index beeb7ff7dd98be1615c8bd9cd37c817f95edf0a6..29f79a94f65ccee4641f7e3e37029984d0f01ae2 100644 (file)
@@ -1260,6 +1260,10 @@ public:
     /**
         Sets the file creation and last access/modification times (any of the pointers
         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,
                   const wxDateTime* dtMod,
index 3117760f1382de90a3f6bf6a2bad61f847a47be5..64100e85a665647d01d12190c38739a42e855407 100644 (file)
@@ -685,7 +685,11 @@ void FileNameTestCase::TestSetTimes()
     CPPUNIT_ASSERT( fn.GetTimes(&dtAccess2, &dtModify2, &dtCreate2) );
     CPPUNIT_ASSERT_EQUAL( dtAccess, dtAccess2 );
     CPPUNIT_ASSERT_EQUAL( dtModify, dtModify2 );
+
+    // Under Unix the creation time can't be set.
+#ifdef __WINDOWS__
     CPPUNIT_ASSERT_EQUAL( dtCreate, dtCreate2 );
+#endif // __WINDOWS__
 }
 
 void FileNameTestCase::TestExists()