tst: winfsp-tests: notify_multiple_end_test

This commit is contained in:
Bill Zissimopoulos 2022-01-15 15:55:00 +00:00
parent 228f1d658d
commit a3b98634de
No known key found for this signature in database
GPG Key ID: 3D4F95D52C7B3EA3

View File

@ -154,6 +154,31 @@ void notify_timeout_test(void)
}
#endif
static
void notify_multiple_end_dotest(ULONG Flags)
{
void *memfs = memfs_start(Flags);
FSP_FILE_SYSTEM *FileSystem = MemfsFileSystem(memfs);
NTSTATUS Result;
Result = FspFileSystemNotifyEnd(FileSystem);
ASSERT(STATUS_SUCCESS == Result);
Result = FspFileSystemNotifyEnd(FileSystem);
ASSERT(STATUS_SUCCESS == Result);
memfs_stop(memfs);
}
static
void notify_multiple_end_test(void)
{
if (WinFspDiskTests)
notify_multiple_end_dotest(MemfsDisk);
if (WinFspNetTests)
notify_multiple_end_dotest(MemfsNet);
}
static
void notify_change_dotest(ULONG Flags)
{
@ -460,6 +485,7 @@ void notify_tests(void)
#if 0
TEST(notify_timeout_test);
#endif
TEST(notify_multiple_end_test);
TEST(notify_change_test);
TEST(notify_open_change_test);
TEST(notify_dirnotify_test);