From d01f8ba3fe606b6a8fb31d07191ac7e16a736201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 19 Mar 2020 11:37:45 +0100 Subject: [PATCH] TgaImporter: minor test cleanup. --- .../TgaImporter/Test/TgaImporterTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/MagnumPlugins/TgaImporter/Test/TgaImporterTest.cpp b/src/MagnumPlugins/TgaImporter/Test/TgaImporterTest.cpp index e53da678f..b95ac4c29 100644 --- a/src/MagnumPlugins/TgaImporter/Test/TgaImporterTest.cpp +++ b/src/MagnumPlugins/TgaImporter/Test/TgaImporterTest.cpp @@ -172,10 +172,10 @@ void TgaImporterTest::paletted() { const char data[] = { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; CORRADE_VERIFY(importer->openData(data)); - std::ostringstream debug; - Error redirectError{&debug}; + std::ostringstream out; + Error redirectError{&out}; CORRADE_VERIFY(!importer->image2D(0)); - CORRADE_COMPARE(debug.str(), "Trade::TgaImporter::image2D(): paletted files are not supported\n"); + CORRADE_COMPARE(out.str(), "Trade::TgaImporter::image2D(): paletted files are not supported\n"); } void TgaImporterTest::invalid() { @@ -183,10 +183,10 @@ void TgaImporterTest::invalid() { const char data[] = { 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; CORRADE_VERIFY(importer->openData(data)); - std::ostringstream debug; - Error redirectError{&debug}; + std::ostringstream out; + Error redirectError{&out}; CORRADE_VERIFY(!importer->image2D(0)); - CORRADE_COMPARE(debug.str(), "Trade::TgaImporter::image2D(): unsupported image type: 9\n"); + CORRADE_COMPARE(out.str(), "Trade::TgaImporter::image2D(): unsupported image type: 9\n"); } void TgaImporterTest::unsupportedBits() {