Fix test_fork intermittent failure on macOS by using safe EPSG code#4616
Fix test_fork intermittent failure on macOS by using safe EPSG code#4616rouault merged 5 commits intoOSGeo:masterfrom
Conversation
This change actually hides the purpose of his test. But this test only works if the sqlite build supports pread(), which I believe Mac doesn't. So this means using proj with fork() on Mac is not safe. Probably that this test should just be enabled on Linux. |
|
Thanks for the explanation. I understand. Would the appropriate solution in this case be to disable this test on macOS instead of modifying the EPSG codes? If yes, could you please guide me on where/how the test should be conditionally disabled for macOS? |
Likely this patch: |
|
Please rebase on top of latest master, and revert the EPSG code changes |
…SGeo#3844) :wq# modified: docs/source/install.rst
ac35fb3 to
1b42cd6
Compare
This PR fixes the intermittent failure in the test_fork test on macOS by preventing database re-initialization inside forked child processes. The change makes the test stable by using a safe EPSG code in child processes so no new registry is created. This resolves the occasional SQLite I/O error seen on macOS.