nix-super/tests
Nikodem Rabuliński 8105307f0f Always initialize curl in parent process on darwin
Because of an objc quirk[1], calling curl_global_init for the first time
after fork() will always result in a crash.
Up until now the solution has been to set
OBJC_DISABLE_INITIALIZE_FORK_SAFETY for every nix process to ignore
that error.
This is less than ideal because we were setting it in package.nix,
which meant that running nix tests locally would fail because
that variable was not set.
Instead of working around that error we address it at the core -
by calling curl_global_init inside initLibStore, which should mean
curl will already have been initialized by the time we try to do so in
a forked process.

[1] 01edf1705f/runtime/objc-initialize.mm (L614-L636)

(cherry-picked and adapted from c7d97802e4)
2024-09-18 14:29:26 +02:00
..
functional Always initialize curl in parent process on darwin 2024-09-18 14:29:26 +02:00
installer tests.installer: Load profile with -o unset 2024-08-19 16:41:40 +02:00
nixos Add test 2024-09-11 17:27:39 +02:00
unit unitests: fix tmpdir when running with meson on macOS 2024-09-17 19:15:01 +02:00
repl-completion.nix Add repl completion test 2024-05-27 09:58:49 +02:00