From 642bbfd79385e24dbc38fe83b02f31ff2640f88d Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Wed, 27 Oct 2021 16:45:19 +0200 Subject: [PATCH] Fixed TestInvalidAllocations --- src/Tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tests.cpp b/src/Tests.cpp index f0852f5..e32009e 100644 --- a/src/Tests.cpp +++ b/src/Tests.cpp @@ -2528,7 +2528,7 @@ static void TestInvalidAllocations() memReq.memoryTypeBits = UINT32_MAX; VmaAllocation alloc = VK_NULL_HANDLE; res = vmaAllocateMemory(g_hAllocator, &memReq, &allocCreateInfo, &alloc, nullptr); - TEST(res == VK_ERROR_VALIDATION_FAILED_EXT && alloc == VK_NULL_HANDLE); + TEST(res == VK_ERROR_INITIALIZATION_FAILED && alloc == VK_NULL_HANDLE); } // Try to create buffer with size = 0. @@ -2539,7 +2539,7 @@ static void TestInvalidAllocations() VkBuffer buf = VK_NULL_HANDLE; VmaAllocation alloc = VK_NULL_HANDLE; res = vmaCreateBuffer(g_hAllocator, &bufCreateInfo, &allocCreateInfo, &buf, &alloc, nullptr); - TEST(res == VK_ERROR_VALIDATION_FAILED_EXT && buf == VK_NULL_HANDLE && alloc == VK_NULL_HANDLE); + TEST(res == VK_ERROR_INITIALIZATION_FAILED && buf == VK_NULL_HANDLE && alloc == VK_NULL_HANDLE); } // Try to create image with one dimension = 0. @@ -2559,7 +2559,7 @@ static void TestInvalidAllocations() VkImage image = VK_NULL_HANDLE; VmaAllocation alloc = VK_NULL_HANDLE; res = vmaCreateImage(g_hAllocator, &imageCreateInfo, &allocCreateInfo, &image, &alloc, nullptr); - TEST(res == VK_ERROR_VALIDATION_FAILED_EXT && image == VK_NULL_HANDLE && alloc == VK_NULL_HANDLE); + TEST(res == VK_ERROR_INITIALIZATION_FAILED && image == VK_NULL_HANDLE && alloc == VK_NULL_HANDLE); } }