diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2013-01-30 17:49:55 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-02-01 10:18:31 +0100 |
commit | 00e3a36a258f883d5cf590cb0e8012a879ce3d9c (patch) | |
tree | dd6f92b719c19b4ecb3eb6e42c1ab28b93972b68 /tests/auto/blackbox/testdata/project_filepath_check | |
parent | 4e5571568512103ee991c8d0175368802132dca1 (diff) |
Check whether stored build graph is really for our project.
At the moment, we accept build graphs for any project and claim "Build
done" if it's newer than the project file.
With this patch, we error out in such a case by default. We do not
simply discard the existing build, because presumably the user made a
mistake and does not want the existing build to be overwritten by one
for a completely different project.
If a user is sure it's the same project after all (e.g. the sources have
moved or the project file was renamed), the "--force" option can be
used.
If a user really wants to throw away the build for the other project,
that must be done manually.
Change-Id: I1194fcc4695632a6b96789bc8032f9d3b3a55ce3
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tests/auto/blackbox/testdata/project_filepath_check')
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/project_filepath_check/main.cpp b/tests/auto/blackbox/testdata/project_filepath_check/main.cpp new file mode 100644 index 000000000..237c8ce18 --- /dev/null +++ b/tests/auto/blackbox/testdata/project_filepath_check/main.cpp @@ -0,0 +1 @@ +int main() {} diff --git a/tests/auto/blackbox/testdata/project_filepath_check/project1.qbs b/tests/auto/blackbox/testdata/project_filepath_check/project1.qbs new file mode 100644 index 000000000..c090a9c52 --- /dev/null +++ b/tests/auto/blackbox/testdata/project_filepath_check/project1.qbs @@ -0,0 +1,5 @@ +import qbs.base 1.0 + +CppApplication { + files: "main.cpp" +} diff --git a/tests/auto/blackbox/testdata/project_filepath_check/project2.qbs b/tests/auto/blackbox/testdata/project_filepath_check/project2.qbs new file mode 100644 index 000000000..c090a9c52 --- /dev/null +++ b/tests/auto/blackbox/testdata/project_filepath_check/project2.qbs @@ -0,0 +1,5 @@ +import qbs.base 1.0 + +CppApplication { + files: "main.cpp" +} |