ruby/spec/mspec/lib
KJ Tsanaktsidis 33290896dc 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)
2024-01-22 13:44:52 +11:00
..
mspec Disable NSS modules when using the leakchecker 2024-01-22 13:44:52 +11:00
mspec.rb