fix Normalize() test by using dummy working directory allowing the test to work even when it's ran from the root directory or its subdirectory (this message also applies to the previous, accidental, commit of this file)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-11-08 19:09:13 +00:00
parent e0dc13d470
commit ab8576b4ac

View 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(),