def test_cuda_find_lib_errors(self):
        """
        This tests that the find_libs works as expected in the case of an
        environment variable being used to set the path.
        """
        # one of these is likely to exist on linux, it's also unlikely that
        # someone has extracted the contents of libdevice into here!
        locs = ['lib', 'lib64']

        looking_for = None
        for l in locs:
            looking_for = os.path.join(os.path.sep, l)
            if os.path.exists(looking_for):
                break

        # This is the testing part, the test will only run if there's a valid
        # path in which to look
        if looking_for is not None:
            out, err = self.run_test_in_separate_process("NUMBA_CUDA_DRIVER",
                                                         looking_for)
            self.assertTrue(out is not None)
            self.assertTrue(err is not None)

        This tests that the find_libs works as expected in the case of an
        environment variable being used to set the path.
        
numba/cuda/tests/cudadrv/test_detect.py