summaryrefslogtreecommitdiff
path: root/include/ruby/assert.h
diff options
context:
space:
mode:
authorKJ Tsanaktsidis <ktsanaktsidis@zendesk.com>2024-01-22 09:13:35 +1100
committerKJ Tsanaktsidis <kj@kjtsanaktsidis.id.au>2024-01-22 13:44:52 +1100
commit33290896dcf23e8f84f9626d87c6f1c4d7cfa04e (patch)
tree859b690dcf79eada151a79dfc1d81e5f7211d50c /include/ruby/assert.h
parent0fadac4c7d229fe077cc34cfc73a90a8e72fe245 (diff)
Disable NSS modules when using the leakchecker
The leakchecker will report leaked file descriptors when tests do things like access `Etc.getgrgid`, for example, if NSS modules (like `sss`) handle these lookups by connecting to a daemon like `sssd` and leave the connection open. To address this, we can call glibc's `__nss_configure_lookup` to override NSS modules configured in /etc/nsswitch.conf and only use ordinary file/DNS lookups. (This is a cherry-pick of a patch applied to ruby/mspec here: https://github.com/ruby/mspec/pull/62)
Diffstat (limited to 'include/ruby/assert.h')
0 files changed, 0 insertions, 0 deletions