From b3394bfc48c6d04eed4fdc19f87ac028c5b11767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 7 Feb 2021 21:49:00 +0100 Subject: [PATCH] Vk: properly skip an assertion test case on a build w/o asserts. The "no assert" build on the CIs doesn't test Vulkan, so this didn't get caught. --- src/Magnum/Vk/Test/PipelineVkTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Magnum/Vk/Test/PipelineVkTest.cpp b/src/Magnum/Vk/Test/PipelineVkTest.cpp index 6fd80df60..c2bccb7b3 100644 --- a/src/Magnum/Vk/Test/PipelineVkTest.cpp +++ b/src/Magnum/Vk/Test/PipelineVkTest.cpp @@ -153,6 +153,10 @@ void PipelineVkTest::constructRasterization() { } void PipelineVkTest::constructRasterizationViewportNotSet() { + #ifdef CORRADE_NO_ASSERT + CORRADE_SKIP("CORRADE_NO_ASSERT defined, can't test assertions"); + #endif + MeshLayout meshLayout{MeshPrimitive::Triangles}; PipelineLayout pipelineLayout{device(), PipelineLayoutCreateInfo{}};