summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qdiriterator/tst_qdiriterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/io/qdiriterator/tst_qdiriterator.cpp')
-rw-r--r--tests/auto/corelib/io/qdiriterator/tst_qdiriterator.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qdiriterator/tst_qdiriterator.cpp b/tests/auto/corelib/io/qdiriterator/tst_qdiriterator.cpp
index d5d490dc29..37d3e1ab68 100644
--- a/tests/auto/corelib/io/qdiriterator/tst_qdiriterator.cpp
+++ b/tests/auto/corelib/io/qdiriterator/tst_qdiriterator.cpp
@@ -48,6 +48,8 @@
#include <qfileinfo.h>
#include <qstringlist.h>
+#include <QtCore/private/qfsfileengine_p.h>
+
#if defined(Q_OS_VXWORKS)
#define Q_NO_SYMLINKS
#endif
@@ -454,6 +456,7 @@ void tst_QDirIterator::stopLinkLoop()
// The goal of this test is only to ensure that the test above don't malfunction
}
+#ifdef QT_BUILD_INTERNAL
class EngineWithNoIterator : public QFSFileEngine
{
public:
@@ -473,13 +476,18 @@ public:
return new EngineWithNoIterator(fileName);
}
};
+#endif
void tst_QDirIterator::engineWithNoIterator()
{
+#ifdef QT_BUILD_INTERNAL
EngineWithNoIteratorHandler handler;
QDir("entrylist").entryList();
QVERIFY(true); // test that the above line doesn't crash
+#else
+ QSKIP("This test requires -developer-build.");
+#endif
}
void tst_QDirIterator::absoluteFilePathsFromRelativeIteratorPath()