Block SVMAllocsManager creation in Context when SVM is not supported

- skip SVM tests when SVM is not supported

Related-To: NEO-3157

Change-Id: Ie5d5ef4778749f60537084fc7f388714954a4873
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
This commit is contained in:
Hoppe, Mateusz
2019-05-15 15:04:43 +02:00
committed by sys_ocldev
parent 9217b80b42
commit d15174d7c5
10 changed files with 74 additions and 21 deletions

View File

@@ -509,6 +509,9 @@ TEST_F(CloneKernelTest, cloneKernelWithArgImmediate) {
}
TEST_F(CloneKernelTest, cloneKernelWithExecInfo) {
if (!pDevice->getHardwareInfo().capabilityTable.ftrSvm) {
GTEST_SKIP();
}
void *ptrSVM = pContext->getSVMAllocsManager()->createSVMAlloc(256, {});
ASSERT_NE(nullptr, ptrSVM);