Author: tfaber
Date: Sat Jun 29 13:10:30 2013
New Revision: 59362
URL:
http://svn.reactos.org/svn/reactos?rev=59362&view=rev
Log:
[KMTESTS:MM]
- Gracefully handle file open failure in ZwCreateSection test. Patch by Aleksandar
Andrejevic.
ROSTESTS-115 #resolve
Modified:
trunk/rostests/kmtests/ntos_mm/ZwCreateSection.c
Modified: trunk/rostests/kmtests/ntos_mm/ZwCreateSection.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/ntos_mm/ZwCreateS…
==============================================================================
--- trunk/rostests/kmtests/ntos_mm/ZwCreateSection.c [iso-8859-1] (original)
+++ trunk/rostests/kmtests/ntos_mm/ZwCreateSection.c [iso-8859-1] Sat Jun 29 13:10:30
2013
@@ -507,9 +507,12 @@
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);