aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api/testdata/project-with-probe-and-profile-item/project-with-probe-and-profile-item.qbs
diff options
context:
space:
mode:
authorRichard Weickelt <richard@weickelt.de>2019-09-23 20:30:04 +0200
committerRichard Weickelt <richard@weickelt.de>2019-09-25 15:36:42 +0000
commite86375117120f8c7b06afa573d9772d3c783f737 (patch)
tree14e71f4e59979dc379889539bc1df0a507336136 /tests/auto/api/testdata/project-with-probe-and-profile-item/project-with-probe-and-profile-item.qbs
parent92dcda11cc01927580eb6d9818818bc673206617 (diff)
Evaluate probes before Profile items
Profile items can reference project properties, but accessing properties of project-level probes failed. This patch ensures that probes are executed before Profile items are evaluated. Fixes: QBS-1490 Change-Id: I5c215b91ded51ac895e433faa2e6fcfbc3d3e212 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/api/testdata/project-with-probe-and-profile-item/project-with-probe-and-profile-item.qbs')
-rw-r--r--tests/auto/api/testdata/project-with-probe-and-profile-item/project-with-probe-and-profile-item.qbs19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/api/testdata/project-with-probe-and-profile-item/project-with-probe-and-profile-item.qbs b/tests/auto/api/testdata/project-with-probe-and-profile-item/project-with-probe-and-profile-item.qbs
new file mode 100644
index 000000000..d7dc02cc2
--- /dev/null
+++ b/tests/auto/api/testdata/project-with-probe-and-profile-item/project-with-probe-and-profile-item.qbs
@@ -0,0 +1,19 @@
+Project {
+
+ property bool probesEvaluated: probe.found
+
+ Probe {
+ id: probe
+ configure: {
+ found = true;
+ }
+ }
+
+ Profile {
+ name: "the-profile"
+ cpp.includePaths: {
+ if (!probesEvaluated)
+ throw "project-level probes not evaluated";
+ }
+ }
+}