Do not run SVMMemoryAllocator tests if SVM not supported

Skip tests:
- SVMMemoryAllocatorTest
- SVMLocalMemoryAllocatorTest

Related-To: NEO-3157

Change-Id: I3f14f71ec3cccaa1925423527cd6bc7ab018f8c5
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
This commit is contained in:
Hoppe, Mateusz
2019-05-13 14:08:05 +02:00
committed by sys_ocldev
parent 2b09ed85d6
commit 501bc88368

View File

@ -20,6 +20,10 @@ struct SVMMemoryAllocatorFixture {
SVMMemoryAllocatorFixture() : executionEnvironment(*platformDevices) {}
virtual void SetUp() {
bool svmSupported = executionEnvironment.getHardwareInfo()->capabilityTable.ftrSvm;
if (!svmSupported) {
GTEST_SKIP();
}
memoryManager = std::make_unique<MockMemoryManager>(false, enableLocalMemory, executionEnvironment);
svmManager = std::make_unique<MockSVMAllocsManager>(memoryManager.get());
}