Correct the expected result of directory existence check.
As /.. is the same as /, a directory with any number of ".." in it will always exist. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -178,8 +178,7 @@ void DirTestCase::DirExists()
|
|||||||
{ "..", true },
|
{ "..", true },
|
||||||
#if defined(__WXMSW__)
|
#if defined(__WXMSW__)
|
||||||
{ "..\\..", true },
|
{ "..\\..", true },
|
||||||
{ "..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..", /*false*/ true },
|
{ "..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..", true },
|
||||||
// FIXME: should fail but it doesn't... looks like a bug in GetFileAttributes() win API
|
|
||||||
{ "c:", true },
|
{ "c:", true },
|
||||||
{ "c:\\", true },
|
{ "c:\\", true },
|
||||||
{ "c:\\\\", true },
|
{ "c:\\\\", true },
|
||||||
@@ -190,7 +189,7 @@ void DirTestCase::DirExists()
|
|||||||
{ "test.exe", false } // not a directory!
|
{ "test.exe", false } // not a directory!
|
||||||
#elif defined(__UNIX__)
|
#elif defined(__UNIX__)
|
||||||
{ "../..", true },
|
{ "../..", true },
|
||||||
{ "../../../../../../../../../../../../../../../../../../../..", false },
|
{ "../../../../../../../../../../../../../../../../../../../..", true },
|
||||||
{ "/", true },
|
{ "/", true },
|
||||||
{ "//", true },
|
{ "//", true },
|
||||||
{ "/usr/bin", true },
|
{ "/usr/bin", true },
|
||||||
|
Reference in New Issue
Block a user