aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/build-graph-versions
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-07-07 15:16:48 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-07-10 13:43:39 +0000
commit77e407ef6b63253154ed692f69a2fac53d8c3fdf (patch)
tree80cf61d90a7bb0f2818ae6369f5b08764f417030 /tests/auto/blackbox/testdata/build-graph-versions
parent709bcc3efcf444639971d16c5e6d685d23fba464 (diff)
Fix behavior with corrupt or outdated build graphs
Commit b6bf17cfd1 introduced a glitch in that a rebuild using a build graph whose magic string does not match would throw an error at the first attempt and silently succeed at the second one. The new behavior is the same as for attempts to rebuild with property changes: A plain "build" fails, a "resolve" does the trick. Some more code had to move from the command line parser to the loader to achieve this. Change-Id: I906748cc1686c0c5d413d9451ec9e2aa26ea2035 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/build-graph-versions')
-rw-r--r--tests/auto/blackbox/testdata/build-graph-versions/build-graph-versions.qbs5
-rw-r--r--tests/auto/blackbox/testdata/build-graph-versions/main.cpp1
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/build-graph-versions/build-graph-versions.qbs b/tests/auto/blackbox/testdata/build-graph-versions/build-graph-versions.qbs
new file mode 100644
index 000000000..f6ae698a0
--- /dev/null
+++ b/tests/auto/blackbox/testdata/build-graph-versions/build-graph-versions.qbs
@@ -0,0 +1,5 @@
+import qbs
+
+CppApplication {
+ files: ["main.cpp"]
+}
diff --git a/tests/auto/blackbox/testdata/build-graph-versions/main.cpp b/tests/auto/blackbox/testdata/build-graph-versions/main.cpp
new file mode 100644
index 000000000..8b8d58de0
--- /dev/null
+++ b/tests/auto/blackbox/testdata/build-graph-versions/main.cpp
@@ -0,0 +1 @@
+int main() { }