summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/qmake/testdata/pro_file_cache/pro_file_cache.pro
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/tools/qmake/testdata/pro_file_cache/pro_file_cache.pro')
-rw-r--r--tests/auto/tools/qmake/testdata/pro_file_cache/pro_file_cache.pro19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/tools/qmake/testdata/pro_file_cache/pro_file_cache.pro b/tests/auto/tools/qmake/testdata/pro_file_cache/pro_file_cache.pro
new file mode 100644
index 0000000000..e324c3f25f
--- /dev/null
+++ b/tests/auto/tools/qmake/testdata/pro_file_cache/pro_file_cache.pro
@@ -0,0 +1,19 @@
+TEMPLATE = app
+CONFIG -= debug_and_release_target
+
+SOURCES =
+
+content = ""
+write_file("include.pri", content)
+include(include.pri)
+
+content = "SOURCES = main.cpp"
+write_file("include.pri", content)
+include(include.pri)
+
+# Make sure that including the .pri file a second time will reload it properly
+# off disk with the new content.
+isEmpty(SOURCES): error(No sources defined)
+
+# Empty it again to silence qmake about non-existance sources
+SOURCES =