Diminish size of memory chunk allocated in ULT test

Change-Id: If57f0334c709a7fc23e4d78eff4f9b913d9154d3
This commit is contained in:
hjnapiat
2017-12-21 16:12:10 +01:00
committed by sys_ocldev
parent 3c9b82e9cc
commit b1823f31ee

View File

@@ -245,7 +245,8 @@ TEST_F(GTPinTests, givenValidRequestForHugeMemoryAllocationThenBufferAllocateFai
-> OCLRT::Buffer * { return nullptr; };
}
cl_context ctxt = (cl_context)((Context *)pContext);
retFromGtPin = (*driverServices.bufferAllocate)((gtpin::context_handle_t)ctxt, 3 * GB, &res);
uint32_t hugeSize = 400u; // Will be handled as huge memory allocation
retFromGtPin = (*driverServices.bufferAllocate)((gtpin::context_handle_t)ctxt, hugeSize, &res);
for (uint32_t i = 0; i < IGFX_MAX_CORE; i++) {
bufferFactory[i] = BufferFuncsBackup[i];
}