ntdll/tests: Don't test . and .. masks, they don't work on Windows.
This commit is contained in:
parent
2d0653e2b2
commit
4142fc9b52
|
@ -261,6 +261,8 @@ static void test_NtQueryDirectoryFile(void)
|
||||||
for (i = 0; testfiles[i].name; i++)
|
for (i = 0; testfiles[i].name; i++)
|
||||||
{
|
{
|
||||||
UNICODE_STRING mask;
|
UNICODE_STRING mask;
|
||||||
|
|
||||||
|
if (testfiles[i].nameW[0] == '.') continue; /* . and .. as masks are broken on Windows */
|
||||||
mask.Buffer = testfiles[i].nameW;
|
mask.Buffer = testfiles[i].nameW;
|
||||||
mask.Length = mask.MaximumLength = lstrlenW(testfiles[i].nameW) * sizeof(WCHAR);
|
mask.Length = mask.MaximumLength = lstrlenW(testfiles[i].nameW) * sizeof(WCHAR);
|
||||||
test_flags_NtQueryDirectoryFile(&attr, testdirA, &mask, FALSE, TRUE);
|
test_flags_NtQueryDirectoryFile(&attr, testdirA, &mask, FALSE, TRUE);
|
||||||
|
|
Loading…
Reference in New Issue