Running VTK tests no longer makes NSWindows appear/disappear as tests are running
It always used to be that doing ctest -j8 -R .
on macOS would result in NSWindows frantically appearing/disappearing as tests are run. This no longer happens.
Preliminary investigation suggests it probably wasn't a VTK change, but a macOS change.
Things we know so far:
- with vtk master, on the Rogue7 bot (macOS 10.11.6) the NSWindows appear/disappear
- with vtk master, on my own Mac (macOS 12.6.1) the NSWindows do not appear/disappear. Likewise for @SeunOdutola (macOS 11.7) and @dgobbi
- kicking the NSRunLoop with
[[NSRunLoop mainRunLoop] runUntilDate:[NSDate distantPast]];
at the end ofvtkCocoaRenderWindow::CreateAWindow
restores the old behaviour. When I build VTK with Python 3, the windows don't appear for the Python tests. But when I build VTK with Python 2, they do appear. Different frameworks, different behaviors. And the Python 2 framework uses the more recent (sic!) SDK (sdk=10.15.6, minos=10.15 vs sdk=10.9, minos=10.9). Maybe there's some difference in the system calls each version of Python does during initialization.
Edited by David Gobbi