]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/filename/filenametest.cpp
Revert accidental incompatible change to wxFileName::DirExists().
[wxWidgets.git] / tests / filename / filenametest.cpp
index 393858d7d4026ac55268bf8b1b81ce4a6c2a31dd..4864bf78074d89e89404f64e104cdeef23b5cc79 100644 (file)
@@ -677,7 +677,13 @@ void FileNameTestCase::TestExists()
     CPPUNIT_ASSERT( !fn.Exists(wxFILE_EXISTS_DIR) );
     CPPUNIT_ASSERT( fn.Exists() );
 
-    wxFileName dirTemp(wxFileName::DirName(wxFileName::GetTempDir()));
+    const wxString& tempdir = wxFileName::GetTempDir();
+
+    wxFileName fileInTempDir(tempdir, "bloordyblop");
+    CPPUNIT_ASSERT( !fileInTempDir.Exists() );
+    CPPUNIT_ASSERT( fileInTempDir.DirExists() );
+
+    wxFileName dirTemp(wxFileName::DirName(tempdir));
     CPPUNIT_ASSERT( !dirTemp.FileExists() );
     CPPUNIT_ASSERT( dirTemp.DirExists() );