winfsp-tests: getinfo_test

This commit is contained in:
Bill Zissimopoulos 2016-01-24 17:45:57 -08:00
parent c34e70f7ab
commit 81bcbb9ea0

View File

@ -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);