Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

If tests call code that fork()s, use of this plugin often leads to crashes on Mac OS High Sierra and onward, *even when number of workers is set to 1* #109

Open
posita opened this issue Jan 21, 2022 · 0 comments

Comments

@posita
Copy link

posita commented Jan 21, 2022

Background: https://stackoverflow.com/q/50168647

I think this should at least be prominently documented. I can conceive of a couple work-arounds.

  1. Programmatically set the OBJC_DISABLE_INITIALIZE_FORK_SAFETY environment variable to YES before running tests.
  2. Create a marker and allow for a mechanism to avoid running marked tests outside the main process? (Not sure if this would work, or how feasible this is.)

But again, I think this symptom and the basic work-around outlined in the StackOverflow post should make its way into the documentation somewhere visible (maybe even with a link to that post).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant