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>
commitbd120e7b43cda21ed3861cedc7e898d6ffc1bb23
parentc6a9793292084ddcffa40a636ebdd1eafb95bbc1
authorFrédéric Lefebvre <frederic.lefebvre@qt.io>
committerFrederic Lefebvre <frederic.lefebvre@qt.io>
commit timeWed, 6 May 2026 10:02:02 +0000