Browse Source

AnyImageConverter: minor cleanup in a test.

pull/537/head
Vladimír Vondruš 5 years ago
parent
commit
a3faf8e7e1
  1. 8
      src/MagnumPlugins/AnyImageConverter/Test/AnyImageConverterTest.cpp

8
src/MagnumPlugins/AnyImageConverter/Test/AnyImageConverterTest.cpp

@ -339,13 +339,15 @@ void AnyImageConverterTest::detect2D() {
std::ostringstream out;
Error redirectError{&out};
CORRADE_VERIFY(!converter->convertToFile(Image2D, data.filename));
/* Can't use raw string literals in macros on GCC 4.8 */
#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\nTrade::AnyImageConverter::convertToFile(): cannot load the {0} plugin\n", data.plugin));
"PluginManager::Manager::load(): plugin {0} is not static and was not found in nonexistent\n"
"Trade::AnyImageConverter::convertToFile(): cannot load the {0} plugin\n",
data.plugin));
#else
CORRADE_COMPARE(out.str(), Utility::formatString(
"PluginManager::Manager::load(): plugin {0} was not found\nTrade::AnyImageConverter::convertToFile(): cannot load the {0} plugin\n", data.plugin));
"PluginManager::Manager::load(): plugin {0} was not found\n"
"Trade::AnyImageConverter::convertToFile(): cannot load the {0} plugin\n", data.plugin));
#endif
}

Loading…
Cancel
Save