mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 00:43:00 -05:00
winfsp-tests: getinfo_test
This commit is contained in:
parent
c34e70f7ab
commit
81bcbb9ea0
@ -48,6 +48,7 @@ void getinfo_dotest(ULONG Flags, PWSTR Prefix)
|
|||||||
Success = GetFileInformationByHandleEx(Handle, FileBasicInfo, &BasicInfo, sizeof BasicInfo);
|
Success = GetFileInformationByHandleEx(Handle, FileBasicInfo, &BasicInfo, sizeof BasicInfo);
|
||||||
ASSERT(Success);
|
ASSERT(Success);
|
||||||
//ASSERT(FILE_ATTRIBUTE_ARCHIVE == BasicInfo.FileAttributes);
|
//ASSERT(FILE_ATTRIBUTE_ARCHIVE == BasicInfo.FileAttributes);
|
||||||
|
if (-1 != Flags)
|
||||||
ASSERT(
|
ASSERT(
|
||||||
TimeLo <= BasicInfo.CreationTime.QuadPart &&
|
TimeLo <= BasicInfo.CreationTime.QuadPart &&
|
||||||
TimeHi > BasicInfo.CreationTime.QuadPart);
|
TimeHi > BasicInfo.CreationTime.QuadPart);
|
||||||
@ -99,6 +100,7 @@ void getinfo_dotest(ULONG Flags, PWSTR Prefix)
|
|||||||
Success = GetFileInformationByHandle(Handle, &FileInfo);
|
Success = GetFileInformationByHandle(Handle, &FileInfo);
|
||||||
ASSERT(Success);
|
ASSERT(Success);
|
||||||
//ASSERT(FILE_ATTRIBUTE_ARCHIVE == FileInfo.dwFileAttributes);
|
//ASSERT(FILE_ATTRIBUTE_ARCHIVE == FileInfo.dwFileAttributes);
|
||||||
|
if (-1 != Flags)
|
||||||
ASSERT(
|
ASSERT(
|
||||||
TimeLo <= ((PLARGE_INTEGER)&FileInfo.ftCreationTime)->QuadPart &&
|
TimeLo <= ((PLARGE_INTEGER)&FileInfo.ftCreationTime)->QuadPart &&
|
||||||
TimeHi > ((PLARGE_INTEGER)&FileInfo.ftCreationTime)->QuadPart);
|
TimeHi > ((PLARGE_INTEGER)&FileInfo.ftCreationTime)->QuadPart);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user