]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/filename/filenametest.cpp
[ 1602455 ] [docs] Fix docs for event used by pickers & collapsiblepane
[wxWidgets.git] / tests / filename / filenametest.cpp
index e87c50a66b74e17c2247a380db42a31ee81e5aeb..889b28262c6e7a1d66a5ce601df9d5bfa948768b 100644 (file)
@@ -144,10 +144,13 @@ void FileNameTestCase::TestConstruction()
         wxString fullname = fn.GetFullPath(fni.format);
         CPPUNIT_ASSERT_EQUAL( wxString(fni.fullname), fullname );
 
+        // notice that we use a dummy working directory to ensure that paths
+        // with "../.." in them could be normalized, otherwise this would fail
+        // if the test is run from root directory or its direct subdirectory
         CPPUNIT_ASSERT_MESSAGE
         (
             wxString::Format("Normalize(%s) failed", fni.fullname).c_str(),
-            fn.Normalize(wxPATH_NORM_ALL, _T(""), fni.format)
+            fn.Normalize(wxPATH_NORM_ALL, _T("/foo/bar/baz"), fni.format)
         );
 
         if ( *fni.volume && *fni.path )