mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
dll: FspAccessCheckEx: fix #190: add test
This commit is contained in:
parent
55955b8514
commit
36ba4ff402
@ -385,7 +385,17 @@ static void create_readonlydir_dotest(ULONG Flags, PWSTR Prefix)
|
|||||||
ASSERT(Success);
|
ASSERT(Success);
|
||||||
|
|
||||||
Success = RemoveDirectoryW(DirPath);
|
Success = RemoveDirectoryW(DirPath);
|
||||||
TEST(create_fileattr_test);
|
ASSERT(!Success);
|
||||||
|
ASSERT(ERROR_ACCESS_DENIED == GetLastError());
|
||||||
|
|
||||||
|
Success = SetFileAttributesW(DirPath, FILE_ATTRIBUTE_DIRECTORY);
|
||||||
|
ASSERT(Success);
|
||||||
|
|
||||||
|
FileAttributes = GetFileAttributesW(DirPath);
|
||||||
|
ASSERT(FILE_ATTRIBUTE_DIRECTORY == FileAttributes);
|
||||||
|
|
||||||
|
Success = RemoveDirectoryW(DirPath);
|
||||||
|
ASSERT(Success);
|
||||||
|
|
||||||
memfs_stop(memfs);
|
memfs_stop(memfs);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user