Stabilize tst_UpdateSpatialNode by adding a cleanupTestCase override
Add tst_UpdateSpatialNode::cleanupTestaCase override that resets the
counts of the TestDate previously declare to 0.
tst_UpdateSpatialNode::updateResource is flaky on windows and fails
when executed multiple times. The failure is caused by global
TestData instances retaining their counts accross test runs.
Add a resetCounts() to the TestData class that reset counts to 0.
Add a cleanupTestCase that calls resetCounts() for the relevant
TestData declared previously.
Pick-to: 6.11 6.8
Change-Id: Ibb0718f2842b98248a1b2ceafad1e4c1b9dccb43
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>