summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/src/mdi.qdoc
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-06-30 16:58:26 +0200
committerMarc Mutz <[email protected]>2025-07-15 12:06:36 +0000
commitd782b2924c8c61b98c987def379caa53158990ac (patch)
tree1399524b57f638a05b64cf2ba30f2962f2838851 /examples/widgets/doc/src/mdi.qdoc
parent408e0c04ebbea28b4546ed82e984c4e64761cce5 (diff)
tst_QTemporaryFile::stressTest(): reliably remove temp files [2/2]: dup trackerHEADdev
After the first patch already reliably removes the temp files left by the test in most cases, this patch plugs the remaining hole, namely that the insert() hasn't happened, yet, when the contains() QVERIFY() fails, and we therefore don't QFile::remove() the youngest temp file. Use QDuplicateTracker, whose raison d'etre is that it has API that does lookup and insert in one go, so that a failed QVERIFY will have already added the file name to the container. We recently added iteration support to QDuplicateTracker, making it possible to use it here as a drop-in replacement for QSet. Pick-to: 6.10 6.9 6.8 6.5 Change-Id: Ia6d1cfa50e452cf583935d5f76aa1cb6794d6eeb Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'examples/widgets/doc/src/mdi.qdoc')
0 files changed, 0 insertions, 0 deletions