mirror of https://gitlab.com/ita1024/waf.git
Merge pull request #1761 from fedepell/unit_test_ldlibrarypath
Manage case in unit_test running when LD_LIBRARY_PATH is not already defined in the environment
This commit is contained in:
commit
7acb027961
|
@ -76,7 +76,7 @@ def make_test(self):
|
|||
if not hasattr(self, 'ut_env'):
|
||||
self.ut_env = dct = dict(os.environ)
|
||||
def add_path(var):
|
||||
dct[var] = self.ut_paths + dct[var]
|
||||
dct[var] = self.ut_paths + dct.get(var,'')
|
||||
if Utils.is_win32:
|
||||
add_path('PATH')
|
||||
elif Utils.unversioned_sys_platform() == 'darwin':
|
||||
|
|
Loading…
Reference in New Issue