# # # patch "tests/empty_environment/__driver__.lua" # from [be39f8bf477c9ebb6000750ae020befd9ecd5a44] # to [1bd02105c86f17a28b3dea134ec9353167b1605a] # ============================================================ --- tests/empty_environment/__driver__.lua be39f8bf477c9ebb6000750ae020befd9ecd5a44 +++ tests/empty_environment/__driver__.lua 1bd02105c86f17a28b3dea134ec9353167b1605a @@ -3,7 +3,13 @@ function noenv_mtn(...) mtn_setup() function noenv_mtn(...) - return {"env", "-i", unpack(mtn(unpack(arg)))} + -- strip all environment variables, except for the library path, so that + -- we can link against libraries in non-standard locations. So far I've + -- only tested that on Linux. + save_LD_LIBRARY_PATH = os.getenv("LD_LIBRARY_PATH") + return {"env", "-i", + "LD_LIBRARY_PATH="..save_LD_LIBRARY_PATH, + unpack(mtn(unpack(arg)))} end if ostype == "Windows" then