aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/buildgraph/buildgraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/buildgraph/buildgraph.cpp')
-rw-r--r--src/lib/buildgraph/buildgraph.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/buildgraph/buildgraph.cpp b/src/lib/buildgraph/buildgraph.cpp
index d80aebe84..88db53e20 100644
--- a/src/lib/buildgraph/buildgraph.cpp
+++ b/src/lib/buildgraph/buildgraph.cpp
@@ -436,8 +436,12 @@ static void doSanityChecksForProduct(const ResolvedProductConstPtr &product, con
QBS_CHECK(artifact->product == product);
foreach (const Artifact * const parent, artifact->parents)
QBS_CHECK(parent->children.contains(artifact));
- foreach (const Artifact * const child, artifact->children)
+ foreach (Artifact * const child, artifact->children) {
QBS_CHECK(child->parents.contains(artifact));
+ QBS_CHECK(child->product);
+ QBS_CHECK(child->product->buildData);
+ QBS_CHECK(child->product->buildData->artifacts.contains(child));
+ }
foreach (Artifact * const child, artifact->childrenAddedByScanner)
QBS_CHECK(artifact->children.contains(child));
const TransformerConstPtr transformer = artifact->transformer;