mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
tst: winfsp-tests: stream_getstreaminfo_test
This commit is contained in:
parent
03f906f966
commit
bfc7fc5dec
@ -1637,6 +1637,15 @@ static void stream_getstreaminfo_dotest(ULONG Flags, PWSTR Prefix, ULONG FileInf
|
|||||||
DWORD times[2];
|
DWORD times[2];
|
||||||
times[0] = GetTickCount();
|
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",
|
StringCbPrintfW(FilePath, sizeof FilePath, L"%s%s\\file5",
|
||||||
Prefix ? L"" : L"\\\\?\\GLOBALROOT", Prefix ? Prefix : memfs_volumename(memfs));
|
Prefix ? L"" : L"\\\\?\\GLOBALROOT", Prefix ? Prefix : memfs_volumename(memfs));
|
||||||
Handle = FindFirstStreamW(FilePath, FindStreamInfoStandard, &FindData, 0);
|
Handle = FindFirstStreamW(FilePath, FindStreamInfoStandard, &FindData, 0);
|
||||||
@ -1674,6 +1683,12 @@ static void stream_getstreaminfo_dotest(ULONG Flags, PWSTR Prefix, ULONG FileInf
|
|||||||
Success = FindClose(Handle);
|
Success = FindClose(Handle);
|
||||||
ASSERT(Success);
|
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",
|
StringCbPrintfW(FilePath, sizeof FilePath, L"%s%s\\dir5",
|
||||||
Prefix ? L"" : L"\\\\?\\GLOBALROOT", Prefix ? Prefix : memfs_volumename(memfs));
|
Prefix ? L"" : L"\\\\?\\GLOBALROOT", Prefix ? Prefix : memfs_volumename(memfs));
|
||||||
Handle = FindFirstStreamW(FilePath, FindStreamInfoStandard, &FindData, 0);
|
Handle = FindFirstStreamW(FilePath, FindStreamInfoStandard, &FindData, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user