tst: winfsp-tests: WIP

This commit is contained in:
Bill Zissimopoulos
2016-10-26 13:27:49 -07:00
parent ff7a446194
commit dfe45e1be5
2 changed files with 16 additions and 4 deletions

View File

@ -329,9 +329,13 @@ static void stream_create_dotest(ULONG Flags, PWSTR Prefix)
StringCbPrintfW(FilePath, sizeof FilePath, L"%s%s\\dir1::$DATA",
Prefix ? L"" : L"\\\\?\\GLOBALROOT", Prefix ? Prefix : memfs_volumename(memfs));
Success = CreateDirectoryW(FilePath, 0);
ASSERT(!Success);
ASSERT(ERROR_DIRECTORY == GetLastError());
if (!OptShareName)
{
/* this CreateDirectory actually succeeds when going through a share! */
Success = CreateDirectoryW(FilePath, 0);
ASSERT(!Success);
ASSERT(ERROR_DIRECTORY == GetLastError());
}
memfs_stop(memfs);
}