on xenial help sign in
Load testability driver when QT_LOAD_TESTABILITY is set. Fixes: https://bugs.launchpad.net/bugs/1226234.

Approved by PS Jenkins bot, Gerry Boland.

commit16fd5bf91cd2d976d7ab5198602a3f8c6c11f5c5 authorMichael Terry <michael.terry@canonical.com> dateWed 2 Oct 2013, 04:22 (13 years ago) parent8b2d56f6e60748
1 file changed+1−1
main.cpp+1−1
main.cpp+1−1
@@ -113,7 +113,7 @@ int startShell(int argc, const char** argv, void* server)
113113
114114 // The testability driver is only loaded by QApplication but not by QGuiApplication.
115115 // However, QApplication depends on QWidget which would add some unneeded overhead => Let's load the testability driver on our own.
116− if (args.contains(QLatin1String("-testability"))) {
116+ if (args.contains(QLatin1String("-testability")) || getenv("QT_LOAD_TESTABILITY")) {
117117 QLibrary testLib(QLatin1String("qttestability"));
118118 if (testLib.load()) {
119119 typedef void (*TasInitialize)(void);