The tests crashed after running ModalDialogsTestCase::FileDialog() because the next call to wxYield() resulted in the completion of an async operation launched by the native file dialog which tried to dereference the already destroyed dialog.