mirror of
https://github.com/reactos/reactos.git
synced 2026-05-22 23:30:07 +08:00
[KMTEST] Add test for FileEndOfFileInformation
This commit is contained in:
@@ -221,6 +221,15 @@ TestAllInformation(VOID)
|
||||
if (FileAllInfo)
|
||||
KmtFreeGuarded(FileAllInfo);
|
||||
|
||||
PFILE_END_OF_FILE_INFORMATION FileEofInfo;
|
||||
Length = sizeof(*FileEofInfo);
|
||||
Status = QueryFileInfo(FileHandle, (PVOID*)&FileEofInfo, &Length, FileEndOfFileInformation);
|
||||
// Checked build: STATUS_INVALID_INFO_CLASS, Free build: STATUS_INVALID_PARAMETER
|
||||
ok(Status == STATUS_INVALID_PARAMETER || Status == STATUS_INVALID_INFO_CLASS, "Wrong Status = %lx\n", Status);
|
||||
ok_eq_size(Length, (SIZE_T)0x5555555555555555ULL);
|
||||
if (FileEofInfo)
|
||||
KmtFreeGuarded(FileEofInfo);
|
||||
|
||||
NoInfo:
|
||||
Status = ObCloseHandle(FileHandle, KernelMode);
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
|
||||
Reference in New Issue
Block a user