From 91ed119690d5d11855ad79d47d99d65dcf1286fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 30 Nov 2022 12:06:43 +0100 Subject: [PATCH] MeshTools: test a "shouldn't assert" case outside of an error redirect. Because if it asserts, it would silently ignore that assert. It should abort if it asserts. --- src/Magnum/MeshTools/Test/CompileGLTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Magnum/MeshTools/Test/CompileGLTest.cpp b/src/Magnum/MeshTools/Test/CompileGLTest.cpp index 52d81f19a..1b2a690c4 100644 --- a/src/Magnum/MeshTools/Test/CompileGLTest.cpp +++ b/src/Magnum/MeshTools/Test/CompileGLTest.cpp @@ -1407,9 +1407,10 @@ void CompileGLTest::externalBuffersInvalid() { nullptr, Trade::MeshIndexData{MeshIndexType::UnsignedInt, nullptr}, {}}; + compile(data, GL::Buffer{NoCreate}, GL::Buffer{}); /* this is okay */ + std::ostringstream out; Error redirectError{&out}; - compile(data, GL::Buffer{NoCreate}, GL::Buffer{}); /* this is okay */ compile(data, GL::Buffer{NoCreate}, GL::Buffer{NoCreate}); compile(indexedData, GL::Buffer{NoCreate}, GL::Buffer{}); CORRADE_COMPARE(out.str(),