summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qresourceengine
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/io/qresourceengine')
-rw-r--r--tests/auto/corelib/io/qresourceengine/qresourceengine.pro2
-rw-r--r--tests/auto/corelib/io/qresourceengine/tst_qresourceengine.cpp12
2 files changed, 13 insertions, 1 deletions
diff --git a/tests/auto/corelib/io/qresourceengine/qresourceengine.pro b/tests/auto/corelib/io/qresourceengine/qresourceengine.pro
index f937d23fe2..e8071297b1 100644
--- a/tests/auto/corelib/io/qresourceengine/qresourceengine.pro
+++ b/tests/auto/corelib/io/qresourceengine/qresourceengine.pro
@@ -21,3 +21,5 @@ GENERATED_TESTDATA = $${runtime_resource.target}
android:!android-embedded {
RESOURCES += android_testdata.qrc
}
+
+builtin_testdata: DEFINES += BUILTIN_TESTDATA
diff --git a/tests/auto/corelib/io/qresourceengine/tst_qresourceengine.cpp b/tests/auto/corelib/io/qresourceengine/tst_qresourceengine.cpp
index ab1866fb2d..9de2aabd31 100644
--- a/tests/auto/corelib/io/qresourceengine/tst_qresourceengine.cpp
+++ b/tests/auto/corelib/io/qresourceengine/tst_qresourceengine.cpp
@@ -125,9 +125,19 @@ void tst_QResourceEngine::checkStructure_data()
rootContents.insert(1, QLatin1String("android_testdata"));
#endif
+#if defined(BUILTIN_TESTDATA)
+ rootContents.insert(8, QLatin1String("testqrc"));
+#endif
+
+
QTest::newRow("root dir") << QString(":/")
<< QString()
- << (QStringList() << "search_file.txt")
+ << (QStringList()
+#if defined(BUILTIN_TESTDATA)
+ << "parentdir.txt"
+ << "runtime_resource.rcc"
+#endif
+ << "search_file.txt")
<< rootContents
<< QLocale::c()
<< qlonglong(0);