From 2d55b4996eaa26c973afdf15f6f703c0a1840a96 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Sat, 9 Jul 2016 15:39:52 +0300 Subject: Allow running qicon_svg test against local qtsvg build When the build is local (i.e. not system-wide installed), libQt5Svg.so.5 needs to be on LD_LIBRARY_PATH, otherwise the plugin will not be able to load it. LD_LIBRARY_PATH is set by target_wrapper.sh, generated by qmake, which will add local lib directory there only if QT contains svg. This is a workaround for the dependency resolution of plugins and modules not being properly integrated. Change-Id: I68c3bc850367af62e7ccaa766fa83453fa0d8621 Reviewed-by: Oswald Buddenhagen --- tests/auto/qicon_svg/qicon_svg.pro | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/auto/qicon_svg/qicon_svg.pro b/tests/auto/qicon_svg/qicon_svg.pro index 643717c..b7f4832 100644 --- a/tests/auto/qicon_svg/qicon_svg.pro +++ b/tests/auto/qicon_svg/qicon_svg.pro @@ -1,12 +1,11 @@ CONFIG += testcase TARGET = tst_qicon_svg -QT += testlib gui-private +QT += svg testlib gui-private SOURCES += tst_qicon_svg.cpp RESOURCES = tst_qicon_svg.qrc wince* { - QT += svg DEPLOYMENT_PLUGIN += qsvg } TESTDATA += icons/* -- cgit v1.2.1