diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-02-21 18:21:06 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-03-03 09:15:55 +0000 |
commit | 41d39eee1272a00d2bdbe525aff8d99ec2a4d7f8 (patch) | |
tree | 4cc16b7c7460153c49a8d3369f8ad51c3ca4ed3e /tests/auto/blackbox/testdata/scan-result-in-non-dependency/app/main.cpp | |
parent | 971cd8c44ffe1623d2129931ed88471432064b01 (diff) |
Artifact Scanning: Prefer scan results from product dependencies
If scanning finds an artifact in more than one product, we so far
randomly used one of them. We now prefer artifacts from product
dependencies, because the other ones might get lost during change
tracking, as we don't keep an "is scan result of" type of information in
our RescuableArtifactData.
This should fix the linked bug in the vast majority of actual projects.
It's also conceptually the right thing to do, because the artifact in
the product dependency is much more likely to be the one that was
intended to be found.
Task-number: QBS-1532
Change-Id: Idd8662bb00570bc57f5861ce83517f0adb845b49
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/scan-result-in-non-dependency/app/main.cpp')
-rw-r--r-- | tests/auto/blackbox/testdata/scan-result-in-non-dependency/app/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/scan-result-in-non-dependency/app/main.cpp b/tests/auto/blackbox/testdata/scan-result-in-non-dependency/app/main.cpp new file mode 100644 index 000000000..2e7bedac8 --- /dev/null +++ b/tests/auto/blackbox/testdata/scan-result-in-non-dependency/app/main.cpp @@ -0,0 +1,3 @@ +#include "app.h" + +int main() { } |