aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsegfault <toni@impl.cc>2020-10-04 08:37:34 -0700
committerToni Uhlig <matzeton@googlemail.com>2020-10-04 17:56:10 +0200
commitb9acc84805661ed644b2d14daad4c8ce1c55b916 (patch)
tree1cf1002a6ac55dd0f0cf412c5235b61bcee6e34a
parenta0fad1d9f021b64d849475fa1a6be403c5433ee5 (diff)
Improved IntegrationTest virt mem alloc tests.
-rw-r--r--IntegrationTest/IntegrationTest.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/IntegrationTest/IntegrationTest.cpp b/IntegrationTest/IntegrationTest.cpp
index b1a0a29..b7582f7 100644
--- a/IntegrationTest/IntegrationTest.cpp
+++ b/IntegrationTest/IntegrationTest.cpp
@@ -30,14 +30,19 @@ int main()
KM_ASSERT_EQUAL(true, ki.Ping(), "Kernel Interface PING - PONG #3");
{
- PVOID addr = (PVOID)0x60000000;
+ PVOID addr = (PVOID)SHMEM_ADDR;
SIZE_T size = 0x100;
+
+ KM_ASSERT_EQUAL(true,
+ ki.VAlloc((HANDLE)this_pid, &addr, &size, PAGE_READWRITE), "Kernel Interface VirtualAlloc SHMEM_ADDR");
+
+ addr = NULL;
+ size = 0x100;
+
KM_ASSERT_EQUAL(true,
ki.VAlloc((HANDLE)this_pid, &addr, &size, PAGE_READWRITE), "Kernel Interface VirtualAlloc");
- //KM_ASSERT_EQUAL(false,
- // ki.VAlloc((HANDLE)this_pid, &addr, &size, PAGE_READWRITE), "Kernel Interface VirtualAlloc again should fail");
- //KM_ASSERT_EQUAL(true,
- // ki.VFree((HANDLE)this_pid, addr, size), "Kernel Interface VirtualFree");
+ KM_ASSERT_EQUAL(true,
+ ki.VFree((HANDLE)this_pid, addr, size), "Kernel Interface VirtualFree");
}
KM_ASSERT_EQUAL(true, ki.Ping(), "Kernel Interface PING - PONG #4");