From 45276d10cc2a01413e6f120ef37e7c1506b3d962 Mon Sep 17 00:00:00 2001 From: Maciej Plewka Date: Thu, 28 Jan 2021 13:52:07 +0000 Subject: [PATCH] Unify kewords for mmap tests Signed-off-by: Maciej Plewka --- ...m_memory_manager_allocate_in_device_pool_tests_dg1.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opencl/test/unit_test/os_interface/linux/drm_memory_manager_allocate_in_device_pool_tests_dg1.cpp b/opencl/test/unit_test/os_interface/linux/drm_memory_manager_allocate_in_device_pool_tests_dg1.cpp index e321afbec9..4f1b6ef30d 100644 --- a/opencl/test/unit_test/os_interface/linux/drm_memory_manager_allocate_in_device_pool_tests_dg1.cpp +++ b/opencl/test/unit_test/os_interface/linux/drm_memory_manager_allocate_in_device_pool_tests_dg1.cpp @@ -1278,7 +1278,7 @@ TEST_F(DrmMemoryManagerLocalMemoryTest, givenAlignmentAndSizeWhenMmapReturnsUnal allocationData.size = MemoryConstants::pageSize64k; memoryManager->mmapFunction = [](void *addr, size_t len, int prot, - int flags, int fd, off_t offset) __THROW { + int flags, int fd, off_t offset) throw() { if (addr == 0) { return reinterpret_cast(0x12345678); } else { @@ -1286,7 +1286,7 @@ TEST_F(DrmMemoryManagerLocalMemoryTest, givenAlignmentAndSizeWhenMmapReturnsUnal } }; - memoryManager->munmapFunction = [](void *addr, size_t len) __THROW { + memoryManager->munmapFunction = [](void *addr, size_t len) throw() { munmapWasCalled = true; return 0; }; @@ -1315,7 +1315,7 @@ TEST_F(DrmMemoryManagerLocalMemoryTest, givenAlignmentAndSizeWhenMmapReturnsAlig allocationData.size = MemoryConstants::pageSize64k; memoryManager->mmapFunction = [](void *addr, size_t len, int prot, - int flags, int fd, __off_t offset) __THROW { + int flags, int fd, off_t offset) throw() { if (addr == 0) { return reinterpret_cast(0x12345678); } else { @@ -1323,7 +1323,7 @@ TEST_F(DrmMemoryManagerLocalMemoryTest, givenAlignmentAndSizeWhenMmapReturnsAlig } }; - memoryManager->munmapFunction = [](void *addr, size_t len) __THROW { + memoryManager->munmapFunction = [](void *addr, size_t len) throw() { munmapWasCalled = true; return 0; };