mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 19:48:38 -05:00 
			
		
		
		
	tst: winfsp-tests: stream_getstreaminfo_test
This commit is contained in:
		| @@ -1637,6 +1637,15 @@ static void stream_getstreaminfo_dotest(ULONG Flags, PWSTR Prefix, ULONG FileInf | ||||
|     DWORD times[2]; | ||||
|     times[0] = GetTickCount(); | ||||
|  | ||||
|     StringCbPrintfW(FilePath, sizeof FilePath, L"%s%s\\file1", | ||||
|         Prefix ? L"" : L"\\\\?\\GLOBALROOT", Prefix ? Prefix : memfs_volumename(memfs)); | ||||
|     Handle = FindFirstStreamW(FilePath, FindStreamInfoStandard, &FindData, 0); | ||||
|     ASSERT(INVALID_HANDLE_VALUE != Handle); | ||||
|     ASSERT(0 == wcscmp(FindData.cStreamName, L"::$DATA")); | ||||
|     Success = FindNextStreamW(Handle, &FindData); | ||||
|     ASSERT(!Success); | ||||
|     ASSERT(ERROR_HANDLE_EOF == GetLastError()); | ||||
|  | ||||
|     StringCbPrintfW(FilePath, sizeof FilePath, L"%s%s\\file5", | ||||
|         Prefix ? L"" : L"\\\\?\\GLOBALROOT", Prefix ? Prefix : memfs_volumename(memfs)); | ||||
|     Handle = FindFirstStreamW(FilePath, FindStreamInfoStandard, &FindData, 0); | ||||
| @@ -1674,6 +1683,12 @@ static void stream_getstreaminfo_dotest(ULONG Flags, PWSTR Prefix, ULONG FileInf | ||||
|     Success = FindClose(Handle); | ||||
|     ASSERT(Success); | ||||
|  | ||||
|     StringCbPrintfW(FilePath, sizeof FilePath, L"%s%s\\dir1", | ||||
|         Prefix ? L"" : L"\\\\?\\GLOBALROOT", Prefix ? Prefix : memfs_volumename(memfs)); | ||||
|     Handle = FindFirstStreamW(FilePath, FindStreamInfoStandard, &FindData, 0); | ||||
|     ASSERT(INVALID_HANDLE_VALUE == Handle); | ||||
|     ASSERT(ERROR_HANDLE_EOF == GetLastError()); | ||||
|  | ||||
|     StringCbPrintfW(FilePath, sizeof FilePath, L"%s%s\\dir5", | ||||
|         Prefix ? L"" : L"\\\\?\\GLOBALROOT", Prefix ? Prefix : memfs_volumename(memfs)); | ||||
|     Handle = FindFirstStreamW(FilePath, FindStreamInfoStandard, &FindData, 0); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user