diff --git a/src/Magnum/GL/Test/DebugOutputGLTest.cpp b/src/Magnum/GL/Test/DebugOutputGLTest.cpp index dad1d1e5c..9e14d121a 100644 --- a/src/Magnum/GL/Test/DebugOutputGLTest.cpp +++ b/src/Magnum/GL/Test/DebugOutputGLTest.cpp @@ -137,7 +137,7 @@ void DebugOutputGLTest::setCallbackDeprecated() { DebugOutput::setDefaultCallback(); }}; - Containers::String out; + std::ostringstream out; CORRADE_IGNORE_DEPRECATED_PUSH DebugOutput::setCallback([](DebugOutput::Source source, DebugOutput::Type type, UnsignedInt id, DebugOutput::Severity severity, const std::string& string, const void* userPtr) { Implementation::defaultDebugCallback(source, type, id, severity, string, static_cast(const_cast(userPtr))); @@ -148,7 +148,7 @@ void DebugOutputGLTest::setCallbackDeprecated() { 1337, DebugOutput::Severity::High, "Hello from OpenGL command stream!"); MAGNUM_VERIFY_NO_GL_ERROR(); - CORRADE_COMPARE(out, + CORRADE_COMPARE(out.str(), "Debug output: high severity application marker (1337): Hello from OpenGL command stream!\n"); } #endif