diff --git a/src/tests/VKTest.h b/src/tests/VKTest.h index 683c8bd97..3519750ad 100644 --- a/src/tests/VKTest.h +++ b/src/tests/VKTest.h @@ -22,6 +22,9 @@ #define ASSERT_FAILED(expr) ASSERT_TRUE((expr) != VK_SUCCESS) #define ASSERT_SUCCESS(expr) ASSERT_TRUE((expr) == VK_SUCCESS) +#define EXPECT_FAILED(expr) EXPECT_TRUE((expr) != VK_SUCCESS) +#define EXPECT_SUCCEEDED(expr) EXPECT_TRUE((expr) == VK_SUCCESS) + namespace gpgmm::vk { struct GpAllocatorCreateInfo; diff --git a/src/tests/end2end/VKResourceAllocatorTests.cpp b/src/tests/end2end/VKResourceAllocatorTests.cpp index 5cc3aa311..5d8661040 100644 --- a/src/tests/end2end/VKResourceAllocatorTests.cpp +++ b/src/tests/end2end/VKResourceAllocatorTests.cpp @@ -80,7 +80,7 @@ TEST_F(VKResourceAllocatorTests, CreateImage) { VkImage image; GpResourceAllocation allocation; - ASSERT_SUCCESS( + EXPECT_SUCCEEDED( gpCreateImage(resourceAllocator, &imageInfo, &image, &allocationInfo, &allocation)); gpDestroyImage(resourceAllocator, image, allocation);