diff options
Diffstat (limited to 'test/test_apng.cpp')
| -rw-r--r-- | test/test_apng.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/test_apng.cpp b/test/test_apng.cpp index 026826b1..7d7062bc 100644 --- a/test/test_apng.cpp +++ b/test/test_apng.cpp @@ -4,14 +4,15 @@ #include <QImageReader> #include <QCoreApplication> -TEST_CASE("Support APNG Plugin (place lib same path)", "[apng]") { +TEST_CASE("Support APNG Plugin", "[apng]") { + // Check paths for libs QCoreApplication::addLibraryPath("."); + QCoreApplication::addLibraryPath("lib"); + + // Either it's loaded from system or we load local QPluginLoader apngPlugin("qapng"); - REQUIRE(apngPlugin.load()); + apngPlugin.load(); - // Fails for some reason on windows and linux don't know about osx - // apng animation seems to be broken linux qt5-5.15.2 INFO(QImageReader::supportedImageFormats().join(' ').toStdString()); - REQUIRE((QImageReader::supportedImageFormats().contains("apng") || - QImageReader::supportedImageFormats().contains("APNG"))); + REQUIRE(QImageReader::supportedImageFormats().contains("apng")); } |
