From 5d04c691af4f2035074d1689744a986dea77902b Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Fri, 31 Aug 2018 23:29:59 +0200 Subject: [PATCH] [KMTESTS:CC] Add a test to show we map our buffers wrong in CC That is expected (cf. CORE-14259) --- modules/rostests/kmtests/ntos_cc/CcMapData_drv.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/rostests/kmtests/ntos_cc/CcMapData_drv.c b/modules/rostests/kmtests/ntos_cc/CcMapData_drv.c index 6eded83e215..e067124ee2b 100644 --- a/modules/rostests/kmtests/ntos_cc/CcMapData_drv.c +++ b/modules/rostests/kmtests/ntos_cc/CcMapData_drv.c @@ -255,6 +255,19 @@ PerformTest( { PKTHREAD ThreadHandle; +#ifdef _X86_ + /* FIXME: Should be fixed, will fail under certains conditions */ + ok(TestContext->Buffer > (PVOID)0xC1000000 && TestContext->Buffer < (PVOID)0xDCFFFFFF, + "Buffer %p not mapped in system space\n", TestContext->Buffer); +#else +#ifdef _M_AMD64 + ok(TestContext->Buffer > (PVOID)0xFFFFF98000000000 && TestContext->Buffer < (PVOID)0xFFFFFA8000000000, + "Buffer %p not mapped in system space\n", TestContext->Buffer); +#else + skip(FALSE, "System space mapping not defined\n"); +#endif +#endif + TestContext->Length = FileSizes.FileSize.QuadPart - Offset.QuadPart; ThreadHandle = KmtStartThread(MapInAnotherThread, TestContext); KmtFinishThread(ThreadHandle, NULL); -- 2.17.1