]> git.saurik.com Git - wxWidgets.git/commitdiff
fix Normalize() test by using dummy working directory allowing the test to work even...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 8 Nov 2006 19:09:13 +0000 (19:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 8 Nov 2006 19:09:13 +0000 (19:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/filename/filenametest.cpp

index 3c733fde7853e5ac30037b3c7c5cf99c1b6cdf6c..889b28262c6e7a1d66a5ce601df9d5bfa948768b 100644 (file)
@@ -144,6 +144,9 @@ 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(),