From 40db6c44bb64e3c59249b7827331fff18b70d0bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 5 Apr 2022 13:21:05 +0200 Subject: [PATCH] TgaImageConverter: amazing, std::ostream has bool conversion? I wonder what it does. Definitely wasn't checking what was intended here. --- .../TgaImageConverter/Test/TgaImageConverterTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MagnumPlugins/TgaImageConverter/Test/TgaImageConverterTest.cpp b/src/MagnumPlugins/TgaImageConverter/Test/TgaImageConverterTest.cpp index 61eb52222..1ccd75928 100644 --- a/src/MagnumPlugins/TgaImageConverter/Test/TgaImageConverterTest.cpp +++ b/src/MagnumPlugins/TgaImageConverter/Test/TgaImageConverterTest.cpp @@ -135,7 +135,7 @@ void TgaImageConverterTest::rgb() { Debug redirectOutput{&out}; array = converter->convertToData(OriginalRGB); } - CORRADE_VERIFY(out); + CORRADE_VERIFY(array); if(!(_importerManager.loadState("TgaImporter") & PluginManager::LoadState::Loaded)) CORRADE_SKIP("TgaImporter plugin not enabled, can't test the result"); @@ -166,7 +166,7 @@ void TgaImageConverterTest::rgba() { Debug redirectOutput{&out}; array = converter->convertToData(OriginalRGBA); } - CORRADE_VERIFY(out); + CORRADE_VERIFY(array); if(!(_importerManager.loadState("TgaImporter") & PluginManager::LoadState::Loaded)) CORRADE_SKIP("TgaImporter plugin not enabled, can't test the result");