ntdll/tests: Don't test . and .. masks, they don't work on Windows.

This commit is contained in:
Alexandre Julliard 2013-07-02 10:03:50 +02:00
parent 2d0653e2b2
commit 4142fc9b52

View File

@ -261,6 +261,8 @@ static void test_NtQueryDirectoryFile(void)
for (i = 0; testfiles[i].name; i++)
{
UNICODE_STRING mask;
if (testfiles[i].nameW[0] == '.') continue; /* . and .. as masks are broken on Windows */
mask.Buffer = testfiles[i].nameW;
mask.Length = mask.MaximumLength = lstrlenW(testfiles[i].nameW) * sizeof(WCHAR);
test_flags_NtQueryDirectoryFile(&attr, testdirA, &mask, FALSE, TRUE);