mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-08 04:52:10 -05:00
tst: winfsp-tests: WIP
This commit is contained in:
parent
ff7a446194
commit
dfe45e1be5
@ -483,7 +483,15 @@ void create_notraverse_dotest(ULONG Flags, PWSTR Prefix)
|
||||
void create_notraverse_test(void)
|
||||
{
|
||||
if (OptNoTraverseToken)
|
||||
return; /* this test needs traverse access privilege in order to work */
|
||||
/* this test needs traverse access privilege in order to work */
|
||||
return;
|
||||
|
||||
if (OptShareName)
|
||||
/*
|
||||
* This test does not work when going through a share!
|
||||
* Does this suggest that traverse privilege is always on when going through shares?
|
||||
*/
|
||||
return;
|
||||
|
||||
if (NtfsTests)
|
||||
{
|
||||
|
@ -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));
|
||||
|
||||
if (!OptShareName)
|
||||
{
|
||||
/* this CreateDirectory actually succeeds when going through a share! */
|
||||
Success = CreateDirectoryW(FilePath, 0);
|
||||
ASSERT(!Success);
|
||||
ASSERT(ERROR_DIRECTORY == GetLastError());
|
||||
}
|
||||
|
||||
memfs_stop(memfs);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user