summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/examples/tst_examples.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-04 05:38:35 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-04 05:38:35 (GMT)
commitcc06fb21f890613c396936561501737a23d1cd9f (patch)
tree835d357a26e2a0cc1424c0b933da556e8c4ee050 /tests/auto/declarative/examples/tst_examples.cpp
parent63d3766ca2a7f3380d4a67e34497f2f70c42b5f2 (diff)
downloadQt-cc06fb21f890613c396936561501737a23d1cd9f.zip
Qt-cc06fb21f890613c396936561501737a23d1cd9f.tar.gz
Qt-cc06fb21f890613c396936561501737a23d1cd9f.tar.bz2
Ensure root object is at least created.
Tweak for QTBUG-5296 (lots of other examples hang too though)
Diffstat (limited to 'tests/auto/declarative/examples/tst_examples.cpp')
-rw-r--r--tests/auto/declarative/examples/tst_examples.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/declarative/examples/tst_examples.cpp b/tests/auto/declarative/examples/tst_examples.cpp
index d758101..2cbb916 100644
--- a/tests/auto/declarative/examples/tst_examples.cpp
+++ b/tests/auto/declarative/examples/tst_examples.cpp
@@ -182,9 +182,10 @@ void tst_examples::examples()
QFileInfo fi(file);
QFileInfo dir(fi.path());
- QFileInfo testdata("data/"+dir.baseName()+"/"+fi.baseName());
+ QString script = "data/"+dir.baseName()+"/"+fi.baseName();
+ QFileInfo testdata(script+".qml");
QStringList arguments;
- arguments << "-script" << (testdata.exists() ? testdata.filePath() : QLatin1String("data/dummytest"))
+ arguments << "-script" << (testdata.exists() ? script : QLatin1String("data/dummytest"))
<< "-scriptopts" << "play,testerror,exitoncomplete,exitonfailure"
<< file;
QProcess p;