Author: tfaber
Date: Mon Apr 17 20:37:26 2017
New Revision: 74361
URL:
http://svn.reactos.org/svn/reactos?rev=74361&view=rev
Log:
[KMTESTS:MM]
- Add some missing newlines and skip()s
Modified:
trunk/rostests/kmtests/ntos_mm/ZwCreateSection.c
trunk/rostests/kmtests/ntos_mm/ZwMapViewOfSection.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] Mon Apr 17 20:37:26
2017
@@ -272,7 +272,7 @@
ok_eq_hex(Status, STATUS_SUCCESS);
ok_eq_ulongptr(IoStatusBlock.Information, FILE_CREATED);
ok(*WriteOnlyFile != NULL, "WriteOnlyFile is NULL\n");
- if (*WriteOnlyFile)
+ if (!skip(*WriteOnlyFile != NULL, "No WriteOnlyFile\n"))
{
FileOffset.QuadPart = 0;
Status = ZwWriteFile(*WriteOnlyFile, NULL, NULL, NULL, &IoStatusBlock,
(PVOID)TestString, TestStringSize, &FileOffset, NULL);
@@ -324,7 +324,7 @@
CREATE_SECTION(Section, SECTION_ALL_ACCESS, NULL, MaximumSize, PAGE_READWRITE,
SEC_COMMIT, NULL, STATUS_INVALID_PARAMETER_4, IGNORE);
//division by zero in ROS
- if (!skip(SharedUserData->LargePageMinimum > 0, "LargePageMinimum is
0"))
+ if (!skip(SharedUserData->LargePageMinimum > 0, "LargePageMinimum is
0\n"))
{
MaximumSize.QuadPart = (_4mb / SharedUserData->LargePageMinimum) *
SharedUserData->LargePageMinimum; //4mb
CREATE_SECTION(Section, SECTION_ALL_ACCESS, NULL, MaximumSize, PAGE_READWRITE,
(SEC_LARGE_PAGES | SEC_COMMIT), NULL, STATUS_SUCCESS, STATUS_SUCCESS);
@@ -425,7 +425,7 @@
//MaximumSize
Status = ZwQueryInformationFile(FileHandleExecuteOnly, &IoStatusBlock,
&FileStandardInfo, sizeof(FILE_STANDARD_INFORMATION), FileStandardInformation);
- if (!skip(NT_SUCCESS(Status), "Cannot query file information"))
+ if (!skip(NT_SUCCESS(Status), "Cannot query file information\n"))
{
//as big as file
MaximumSize = FileStandardInfo.EndOfFile;
@@ -503,7 +503,7 @@
KmtInitTestFiles(&FileHandleReadOnly, &FileHandleWriteOnly,
&FileHandleExecuteOnly);
- if (FileHandleReadOnly && FileHandleWriteOnly &&
FileHandleExecuteOnly)
+ if (!skip(FileHandleReadOnly && FileHandleWriteOnly &&
FileHandleExecuteOnly, "Missing one or more file handles\n"))
{
FileSectionViewPermissionCheck(FileHandleReadOnly, FileHandleWriteOnly,
FileHandleExecuteOnly);
SimpleErrorChecks(FileHandleReadOnly, FileHandleWriteOnly,
FileHandleExecuteOnly);
Modified: trunk/rostests/kmtests/ntos_mm/ZwMapViewOfSection.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/ntos_mm/ZwMapView…
==============================================================================
--- trunk/rostests/kmtests/ntos_mm/ZwMapViewOfSection.c [iso-8859-1] (original)
+++ trunk/rostests/kmtests/ntos_mm/ZwMapViewOfSection.c [iso-8859-1] Mon Apr 17 20:37:26
2017
@@ -81,7 +81,7 @@
ok_eq_hex(Status, STATUS_SUCCESS);
ok_eq_ulongptr(IoStatusBlock.Information, FILE_CREATED);
ok(*WriteOnlyFile != NULL, "WriteOnlyFile is NULL\n");
- if (*WriteOnlyFile)
+ if (!skip(*WriteOnlyFile != NULL, "No WriteOnlyFile\n"))
{
FileOffset.QuadPart = 0;
Status = ZwWriteFile(*WriteOnlyFile, NULL, NULL, NULL, &IoStatusBlock,
(PVOID)TestString, TestStringSize, &FileOffset, NULL);