added \\server\dir\filename.exe test case

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-05-22 22:48:15 +00:00
parent 2361ce822f
commit 6307da56b8

View File

@@ -91,7 +91,7 @@
#undef TEST_ALL #undef TEST_ALL
static const bool TEST_ALL = TRUE; static const bool TEST_ALL = TRUE;
#else #else
#define TEST_DIR #define TEST_FILENAME
static const bool TEST_ALL = FALSE; static const bool TEST_ALL = FALSE;
#endif #endif
@@ -866,6 +866,7 @@ static struct FileNameInfo
{ _T("c:\\foo.bar"), _T("c"), _T("\\"), _T("foo"), _T("bar"), TRUE, wxPATH_DOS }, { _T("c:\\foo.bar"), _T("c"), _T("\\"), _T("foo"), _T("bar"), TRUE, wxPATH_DOS },
{ _T("c:\\Windows\\command.com"), _T("c"), _T("\\Windows"), _T("command"), _T("com"), TRUE, wxPATH_DOS }, { _T("c:\\Windows\\command.com"), _T("c"), _T("\\Windows"), _T("command"), _T("com"), TRUE, wxPATH_DOS },
{ _T("\\\\server\\foo.bar"), _T("server"), _T("\\"), _T("foo"), _T("bar"), TRUE, wxPATH_DOS }, { _T("\\\\server\\foo.bar"), _T("server"), _T("\\"), _T("foo"), _T("bar"), TRUE, wxPATH_DOS },
{ _T("\\\\server\\dir\\foo.bar"), _T("server"), _T("\\dir"), _T("foo"), _T("bar"), TRUE, wxPATH_DOS },
// wxFileName support for Mac file names is broken currently // wxFileName support for Mac file names is broken currently
#if 0 #if 0
@@ -5896,7 +5897,7 @@ int main(int argc, char **argv)
#endif // TEST_FILE #endif // TEST_FILE
#ifdef TEST_FILENAME #ifdef TEST_FILENAME
if ( 1 ) if ( 0 )
{ {
wxFileName fn; wxFileName fn;
fn.Assign("c:\\foo", "bar.baz"); fn.Assign("c:\\foo", "bar.baz");
@@ -5905,6 +5906,7 @@ int main(int argc, char **argv)
DumpFileName(fn); DumpFileName(fn);
} }
TestFileNameConstruction();
if ( TEST_ALL ) if ( TEST_ALL )
{ {
TestFileNameConstruction(); TestFileNameConstruction();