From 6ba86956688a022c4efb0b5eeaa81c8935b20c1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 19 Dec 2021 20:21:39 +0100 Subject: [PATCH] AnyImageConverter: whoops, again didn't test the correct path here. Good thing the coverage reports exist. --- .../AnyImageConverter/Test/AnyImageConverterTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/MagnumPlugins/AnyImageConverter/Test/AnyImageConverterTest.cpp b/src/MagnumPlugins/AnyImageConverter/Test/AnyImageConverterTest.cpp index 29c063b80..4e3c3dbbb 100644 --- a/src/MagnumPlugins/AnyImageConverter/Test/AnyImageConverterTest.cpp +++ b/src/MagnumPlugins/AnyImageConverter/Test/AnyImageConverterTest.cpp @@ -800,14 +800,16 @@ void AnyImageConverterTest::detectCompressed3D() { } void AnyImageConverterTest::detectLevels1D() { - auto&& data = DetectCompressed1DData[testCaseInstanceId()]; + auto&& data = DetectLevels1DData[testCaseInstanceId()]; setTestCaseDescription(data.name); Containers::Pointer converter = _manager.instantiate("AnyImageConverter"); std::ostringstream out; Error redirectError{&out}; - CORRADE_VERIFY(!converter->convertToFile(CompressedImage1D, data.filename)); + /* Using the list API even though there's just one image, which should + still trigger the correct code path for AnyImageConverter. */ + CORRADE_VERIFY(!converter->convertToFile({Image1D}, data.filename)); #ifndef CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT CORRADE_COMPARE(out.str(), Utility::formatString( "PluginManager::Manager::load(): plugin {0} is not static and was not found in nonexistent\n"