summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2011-02-22 09:45:16 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2011-04-13 12:56:16 (GMT)
commit171c8b3dd904d3adf26d00ebaa0f372c1a8a5c71 (patch)
treef4b6101afa707558ca32594b1d12951e3b4c83de
parent4e2d549e8b2e34c5bd4c77a4a6eba99ed0912168 (diff)
downloadQt-171c8b3dd904d3adf26d00ebaa0f372c1a8a5c71.zip
Qt-171c8b3dd904d3adf26d00ebaa0f372c1a8a5c71.tar.gz
Qt-171c8b3dd904d3adf26d00ebaa0f372c1a8a5c71.tar.bz2
Autotest: Use the shadow-build trick in all platforms
-rw-r--r--tests/auto/qsslkey/tst_qsslkey.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/qsslkey/tst_qsslkey.cpp b/tests/auto/qsslkey/tst_qsslkey.cpp
index e7b4740..86da09e 100644
--- a/tests/auto/qsslkey/tst_qsslkey.cpp
+++ b/tests/auto/qsslkey/tst_qsslkey.cpp
@@ -108,10 +108,8 @@ tst_QSslKey::tst_QSslKey()
#ifdef Q_WS_MAC
// applicationDirPath() points to a path inside the app bundle on Mac.
QDir dir(qApp->applicationDirPath() + QLatin1String("/../../../keys"));
-#elif defined(Q_OS_WIN) || defined (Q_OS_SYMBIAN)
- QDir dir(SRCDIR + QLatin1String("/keys")); // prefer this way to avoid ifdeffery and support shadow builds?
#else
- QDir dir(qApp->applicationDirPath() + QLatin1String("/keys"));
+ QDir dir(SRCDIR + QLatin1String("/keys")); // prefer this way to avoid ifdeffery and support shadow builds?
#endif
QFileInfoList fileInfoList = dir.entryInfoList(QDir::Files | QDir::Readable);
QRegExp rx(QLatin1String("^(rsa|dsa)-(pub|pri)-(\\d+)\\.(pem|der)$"));