mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
[KMTEST] Fix MmSection tests
This commit is contained in:
parent
f93ad39d62
commit
f0f58a5788
|
@ -226,14 +226,16 @@ TestCreateSection(
|
||||||
ok_eq_longlong(MaximumSize.QuadPart, 1LL);
|
ok_eq_longlong(MaximumSize.QuadPart, 1LL);
|
||||||
ok(SectionObject != KmtInvalidPointer, "Section object pointer untouched\n");
|
ok(SectionObject != KmtInvalidPointer, "Section object pointer untouched\n");
|
||||||
ok(SectionObject != NULL, "Section object pointer NULL\n");
|
ok(SectionObject != NULL, "Section object pointer NULL\n");
|
||||||
++PointerCount2;
|
//++PointerCount2;
|
||||||
CheckObject(FileHandle2, PointerCount2, 1L);
|
CheckObject(FileHandle2, PointerCount2, 1L);
|
||||||
CheckSection(SectionObject, 0);
|
CheckSection(SectionObject, SEC_IMAGE);
|
||||||
TestMapView(SectionObject, TRUE, TRUE);
|
TestMapView(SectionObject, FALSE, TRUE);
|
||||||
|
|
||||||
if (SectionObject && SectionObject != KmtInvalidPointer)
|
if (SectionObject && SectionObject != KmtInvalidPointer)
|
||||||
|
{
|
||||||
ObDereferenceObject(SectionObject);
|
ObDereferenceObject(SectionObject);
|
||||||
//--PointerCount2; // ????
|
//--PointerCount2;
|
||||||
|
}
|
||||||
|
|
||||||
CheckObject(FileHandle2, PointerCount2, 1L);
|
CheckObject(FileHandle2, PointerCount2, 1L);
|
||||||
SectionObject = KmtInvalidPointer;
|
SectionObject = KmtInvalidPointer;
|
||||||
|
@ -246,8 +248,8 @@ TestCreateSection(
|
||||||
ok(SectionObject != KmtInvalidPointer, "Section object pointer untouched\n");
|
ok(SectionObject != KmtInvalidPointer, "Section object pointer untouched\n");
|
||||||
ok(SectionObject != NULL, "Section object pointer NULL\n");
|
ok(SectionObject != NULL, "Section object pointer NULL\n");
|
||||||
CheckObject(FileHandle2, PointerCount2, 1L);
|
CheckObject(FileHandle2, PointerCount2, 1L);
|
||||||
CheckSection(SectionObject, 0);
|
CheckSection(SectionObject, SEC_IMAGE);
|
||||||
TestMapView(SectionObject, TRUE, TRUE);
|
TestMapView(SectionObject, FALSE, TRUE);
|
||||||
|
|
||||||
if (SectionObject && SectionObject != KmtInvalidPointer)
|
if (SectionObject && SectionObject != KmtInvalidPointer)
|
||||||
ObDereferenceObject(SectionObject);
|
ObDereferenceObject(SectionObject);
|
||||||
|
@ -316,8 +318,8 @@ TestCreateSection(
|
||||||
ok(SectionObject != NULL, "Section object pointer NULL\n");
|
ok(SectionObject != NULL, "Section object pointer NULL\n");
|
||||||
CheckObject(FileHandle1, PointerCount1, 1L);
|
CheckObject(FileHandle1, PointerCount1, 1L);
|
||||||
CheckObject(FileHandle2, PointerCount2, 1L);
|
CheckObject(FileHandle2, PointerCount2, 1L);
|
||||||
CheckSection(SectionObject, 0);
|
CheckSection(SectionObject, SEC_IMAGE);
|
||||||
TestMapView(SectionObject, TRUE, TRUE);
|
TestMapView(SectionObject, FALSE, TRUE);
|
||||||
|
|
||||||
if (SectionObject && SectionObject != KmtInvalidPointer)
|
if (SectionObject && SectionObject != KmtInvalidPointer)
|
||||||
ObDereferenceObject(SectionObject);
|
ObDereferenceObject(SectionObject);
|
||||||
|
|
Loading…
Reference in a new issue