From 9ba5a55c52d8d5f547ad712d2c244c31d74efa62 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Tue, 9 Apr 2013 23:27:35 +0000 Subject: [PATCH] [NTDLL_APITEST] * Enable the test for committing regions larger than the section again * Test behaviour of NtFreeVirtualMemory(MEM_DECOMMIT) for section-backed virtual memory svn path=/trunk/; revision=58728 --- rostests/apitests/ntdll/NtMapViewOfSection.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rostests/apitests/ntdll/NtMapViewOfSection.c b/rostests/apitests/ntdll/NtMapViewOfSection.c index 8727164ebdf..dbf89094a6f 100644 --- a/rostests/apitests/ntdll/NtMapViewOfSection.c +++ b/rostests/apitests/ntdll/NtMapViewOfSection.c @@ -103,9 +103,11 @@ Test_PageFileSection(void) MEM_COMMIT, PAGE_READWRITE); ok(NT_SUCCESS(Status), "NtAllocateVirtualMemory failed with Status %lx\n", Status); -#ifndef CORE_7065_FIXED - ok(0, "Committing a range larger than the section crashes. See CORE-7065\n"); -#else + Status = NtFreeVirtualMemory(NtCurrentProcess(), + &BaseAddress, + &ViewSize, + MEM_DECOMMIT); + ok(Status == STATUS_UNABLE_TO_DELETE_SECTION, "NtFreeVirtualMemory returned wrong Status %lx\n", Status); /* Try to commit a range larger than the section */ BaseAddress = (PVOID)0x30000000; ViewSize = 0x3000; @@ -117,7 +119,7 @@ Test_PageFileSection(void) PAGE_READWRITE); ok(Status == STATUS_CONFLICTING_ADDRESSES, "NtAllocateVirtualMemory failed with wrong Status %lx\n", Status); -#endif + /* Try to commit a page after the section */ BaseAddress = (PVOID)0x30002000; ViewSize = 0x1000; -- 2.17.1