Wait for two frames before picking custom geometry in tests


The mesh and BVH for custom geometry are built on the render thread, and
the single frameSwapped() these tests waited for can belong to a frame
that was already in flight, so the pick could run before the mesh
existed. test_sphere_geometry() passed on its own but failed about half
the time when another test ran before it.

test_picking_QTBUG_111997() now reaches its last case instead of timing
out on the first, but that case still fails on macOS arm, so the test
stays blacklisted.

Pick-to: 6.12
Change-Id: Ifa91cae0ebeb028d2f7f22d6918b22c05f924f3d
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
commite6e3434c5e9a13bf81538335ad3250087e54d18d
parent819f08d7ccf3171c6fa89f818f6a477d728ae84a
authorAndy Nichols <andy.nichols@qt.io>
committerAndy Nichols <andy.nichols@qt.io>
commit timeThu, 27 Aug 2026 10:30:51 +0000