summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptengine
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-26 08:41:37 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-06-26 08:43:16 (GMT)
commit9ac5755fb53387a79e5d9c007501800ab9963bed (patch)
treef09282f68d1644f74afba036468b79a2fa14f682 /tests/auto/qscriptengine
parent51e5b6e876774406a9ee4f443ae7619390f5e9b4 (diff)
downloadQt-9ac5755fb53387a79e5d9c007501800ab9963bed.zip
Qt-9ac5755fb53387a79e5d9c007501800ab9963bed.tar.gz
Qt-9ac5755fb53387a79e5d9c007501800ab9963bed.tar.bz2
make autotests work with shadowbuilds
Can't assume that the executable and source are in the same dir.
Diffstat (limited to 'tests/auto/qscriptengine')
-rw-r--r--tests/auto/qscriptengine/qscriptengine.pro1
-rw-r--r--tests/auto/qscriptengine/tst_qscriptengine.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qscriptengine/qscriptengine.pro b/tests/auto/qscriptengine/qscriptengine.pro
index cf3ced3..b5aa621 100644
--- a/tests/auto/qscriptengine/qscriptengine.pro
+++ b/tests/auto/qscriptengine/qscriptengine.pro
@@ -1,6 +1,7 @@
load(qttest_p4)
QT += script
SOURCES += tst_qscriptengine.cpp
+DEFINES += SRCDIR=\\\"$$PWD\\\"
wince*: {
addFiles.sources = script
diff --git a/tests/auto/qscriptengine/tst_qscriptengine.cpp b/tests/auto/qscriptengine/tst_qscriptengine.cpp
index 68df392..c17454d 100644
--- a/tests/auto/qscriptengine/tst_qscriptengine.cpp
+++ b/tests/auto/qscriptengine/tst_qscriptengine.cpp
@@ -1562,7 +1562,7 @@ static QScriptValue __import__(QScriptContext *ctx, QScriptEngine *eng)
void tst_QScriptEngine::importExtension()
{
QStringList libPaths = QCoreApplication::instance()->libraryPaths();
- QCoreApplication::instance()->setLibraryPaths(QStringList() << ".");
+ QCoreApplication::instance()->setLibraryPaths(QStringList() << SRCDIR);
QStringList availableExtensions;
{