[KMTESTS:MM]

- Gracefully handle file open failure in ZwCreateSection test. Patch by Aleksandar Andrejevic.
ROSTESTS-115 #resolve

svn path=/trunk/; revision=59362
This commit is contained in:
Thomas Faber 2013-06-29 13:10:30 +00:00
parent a8ece748b5
commit 1c1f89cd6b

View file

@ -507,9 +507,12 @@ START_TEST(ZwCreateSection)
KmtInitTestFiles(&FileHandleReadOnly, &FileHandleWriteOnly, &FileHandleExecuteOnly);
FileSectionViewPermissionCheck(FileHandleReadOnly, FileHandleWriteOnly, FileHandleExecuteOnly);
SimpleErrorChecks(FileHandleReadOnly, FileHandleWriteOnly, FileHandleExecuteOnly);
BasicBehaviorChecks(FileHandleWriteOnly);
if (FileHandleReadOnly && FileHandleWriteOnly && FileHandleExecuteOnly)
{
FileSectionViewPermissionCheck(FileHandleReadOnly, FileHandleWriteOnly, FileHandleExecuteOnly);
SimpleErrorChecks(FileHandleReadOnly, FileHandleWriteOnly, FileHandleExecuteOnly);
BasicBehaviorChecks(FileHandleWriteOnly);
}
if (FileHandleReadOnly)
ZwClose(FileHandleReadOnly);