This test is affected by LD_PRELOAD and will fail if it detects a shared library outside of standard system paths.