mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 08:33:11 +00:00
[KMTEST] Add test for FileEndOfFileInformation
This commit is contained in:
parent
bebf99aaf1
commit
e77da17f68
1 changed files with 9 additions and 0 deletions
|
@ -221,6 +221,15 @@ TestAllInformation(VOID)
|
||||||
if (FileAllInfo)
|
if (FileAllInfo)
|
||||||
KmtFreeGuarded(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:
|
NoInfo:
|
||||||
Status = ObCloseHandle(FileHandle, KernelMode);
|
Status = ObCloseHandle(FileHandle, KernelMode);
|
||||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue