projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4953dd
)
Fix unit test added in r62561 to work under Windows too.
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Mon, 9 Nov 2009 18:20:05 +0000
(18:20 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Mon, 9 Nov 2009 18:20:05 +0000
(18:20 +0000)
The unit test checking that slashes were allowed in UNCs too didn't work under
Windows because GetPath() returned volume as part of the path there (and also
used backslashes by default), fix it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62579
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
tests/filename/filenametest.cpp
patch
|
blob
|
blame
|
history
diff --git
a/tests/filename/filenametest.cpp
b/tests/filename/filenametest.cpp
index 8039d2f80b66bce1c47990cdb0420c3c6985c35d..70d3dced98bc513760d4e0b082cbea4b17dc022a 100644
(file)
--- a/
tests/filename/filenametest.cpp
+++ b/
tests/filename/filenametest.cpp
@@
-500,10
+500,10
@@
void FileNameTestCase::TestUNC()
{
wxFileName fn("//share/path/name.ext", wxPATH_DOS);
CPPUNIT_ASSERT_EQUAL( "share", fn.GetVolume() );
- CPPUNIT_ASSERT_EQUAL( "
/path", fn.GetPath(
) );
+ CPPUNIT_ASSERT_EQUAL( "
\\path", fn.GetPath(wxPATH_NO_SEPARATOR, wxPATH_DOS
) );
fn.Assign("\\\\share2\\path2\\name.ext", wxPATH_DOS);
CPPUNIT_ASSERT_EQUAL( "share2", fn.GetVolume() );
- CPPUNIT_ASSERT_EQUAL( "
/path2", fn.GetPath(
) );
+ CPPUNIT_ASSERT_EQUAL( "
\\path2", fn.GetPath(wxPATH_NO_SEPARATOR, wxPATH_DOS
) );
}