From d44514b60f2d9b6c02ba195ee3da906d20474642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 24 Apr 2021 20:35:18 +0200 Subject: [PATCH] GL: properly skip a test on a no-assert build. --- src/Magnum/GL/Test/MeshGLTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Magnum/GL/Test/MeshGLTest.cpp b/src/Magnum/GL/Test/MeshGLTest.cpp index f58b3a598..7024ce347 100644 --- a/src/Magnum/GL/Test/MeshGLTest.cpp +++ b/src/Magnum/GL/Test/MeshGLTest.cpp @@ -3364,6 +3364,10 @@ void MeshGLTest::multiDrawIndexed() { } void MeshGLTest::multiDrawInstanced() { + #ifdef CORRADE_NO_ASSERT + CORRADE_SKIP("CORRADE_NO_ASSERT defined, can't test assertions"); + #endif + Mesh mesh; MeshView view{mesh}; view.setCount(3)