Add allocateGraphicsMemoryInDevicePool

- do not always expect failures in tests with failure injections
there is retry mechanism for some cases

Change-Id: If7589d2dacc41216d2f3b08f861209bbab179615
This commit is contained in:
Hoppe, Mateusz
2018-07-18 09:48:21 +02:00
committed by sys_ocldev
parent 1afc09bc05
commit f125c8ff45
21 changed files with 360 additions and 35 deletions

View File

@@ -573,9 +573,6 @@ TEST_P(ValidHostPtr, failedAllocationInjection) {
if (nonfailingAllocation == failureIndex) {
EXPECT_EQ(CL_SUCCESS, retVal);
EXPECT_NE(nullptr, buffer);
} else {
EXPECT_EQ(CL_OUT_OF_HOST_MEMORY, retVal) << "for allocation " << failureIndex;
EXPECT_EQ(nullptr, buffer);
}
};
injectFailures(method);