Fixed failure of tst_examples::namingConvention
authorRohan McGovern <rohan.mcgovern@nokia.com>
Fri, 24 Jun 2011 14:49:39 +0000 (00:49 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 24 Jun 2011 14:57:07 +0000 (16:57 +0200)
Since 1fab62b930edd4abed076e57ee997eae09159f22 in qtbase, demos and
examples are merged.  This was causing the test to unintentionally
iterate over the entire source tree.

Change-Id: I8e60c5742a3c15a4187f6c8cdac3cdc7f7ee24c0
Reviewed-on: http://codereview.qt.nokia.com/729
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
tests/auto/declarative/examples/tst_examples.cpp

index 42e0b5b..1a07f6b 100644 (file)
@@ -136,10 +136,8 @@ void tst_examples::namingConvention(const QDir &d)
 void tst_examples::namingConvention()
 {
     QString examples = QLibraryInfo::location(QLibraryInfo::ExamplesPath);
-    QString demos = QLibraryInfo::location(QLibraryInfo::DemosPath);
 
     namingConvention(QDir(examples));
-    namingConvention(QDir(demos));
 }
 
 QStringList tst_examples::findQmlFiles(const QDir &d)