mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 11:38:39 -05:00 
			
		
		
		
	tst: winfsp-tests: notify_multiple_end_test
This commit is contained in:
		| @@ -154,6 +154,31 @@ void notify_timeout_test(void) | |||||||
| } | } | ||||||
| #endif | #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 | static | ||||||
| void notify_change_dotest(ULONG Flags) | void notify_change_dotest(ULONG Flags) | ||||||
| { | { | ||||||
| @@ -460,6 +485,7 @@ void notify_tests(void) | |||||||
| #if 0 | #if 0 | ||||||
|     TEST(notify_timeout_test); |     TEST(notify_timeout_test); | ||||||
| #endif | #endif | ||||||
|  |     TEST(notify_multiple_end_test); | ||||||
|     TEST(notify_change_test); |     TEST(notify_change_test); | ||||||
|     TEST(notify_open_change_test); |     TEST(notify_open_change_test); | ||||||
|     TEST(notify_dirnotify_test); |     TEST(notify_dirnotify_test); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user