Don't set LD_PRELOAD to ''. It doesn't work on OpenBSD.

Patch by Brad Smith.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2015-01-14 00:39:56 +00:00
parent c9109225e2
commit 7c845683ea

View File

@ -26,7 +26,11 @@ class TestingConfig:
'LD_PRELOAD', 'ASAN_OPTIONS', 'UBSAN_OPTIONS', 'LD_PRELOAD', 'ASAN_OPTIONS', 'UBSAN_OPTIONS',
'LSAN_OPTIONS'] 'LSAN_OPTIONS']
for var in pass_vars: for var in pass_vars:
environment[var] = os.environ.get(var, '') val = os.environ.get(var, '')
# Check for empty string as some variables such as LD_PRELOAD cannot be empty
# ('') for OS's such as OpenBSD.
if val:
environment[var] = val
if sys.platform == 'win32': if sys.platform == 'win32':
environment.update({ environment.update({