From ab8576b4acbf68f0aba6feb1d7ba110588a47dfb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 8 Nov 2006 19:09:13 +0000 Subject: [PATCH] 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 --- tests/filename/filenametest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/filename/filenametest.cpp b/tests/filename/filenametest.cpp index 3c733fde78..889b28262c 100644 --- a/tests/filename/filenametest.cpp +++ b/tests/filename/filenametest.cpp @@ -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(),