diff options
| author | Michal Gorny <mgorny@gentoo.org> | 2019-07-26 15:39:05 +0000 |
|---|---|---|
| committer | Michal Gorny <mgorny@gentoo.org> | 2019-07-26 15:39:05 +0000 |
| commit | 40a10446c080c88176d2c6766736932cd1a48afa (patch) | |
| tree | 4e166c9f90612b73c515d10207cd70e5a4bb28f5 /llvm/utils | |
| parent | ffc722a3581775cf6c4bbedf1364434a932dc378 (diff) | |
| download | bcm5719-llvm-40a10446c080c88176d2c6766736932cd1a48afa.tar.gz bcm5719-llvm-40a10446c080c88176d2c6766736932cd1a48afa.zip | |
[llvm] [lit/tests] Replace 'env -u' with more portable construct
Set environment variables to empty values rather than attempting
to unset them via 'env -u', in order to fix NetBSD test regression
caused by r366980. POSIX does not guarantee that env(1) supports '-u'
option, and indeed NetBSD env(1) does not support it.
Differential Revision: https://reviews.llvm.org/D65335
llvm-svn: 367123
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/lit/tests/lit.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/tests/lit.cfg b/llvm/utils/lit/tests/lit.cfg index 2830956f80d..e1034dc225a 100644 --- a/llvm/utils/lit/tests/lit.cfg +++ b/llvm/utils/lit/tests/lit.cfg @@ -53,7 +53,7 @@ config.substitutions.append(('%{inputs}', os.path.join( config.test_source_root, 'Inputs'))) config.substitutions.append(('%{lit}', "{env} %{{python}} {lit}".format( - env="env -u FILECHECK_OPTS -u FILECHECK_DUMP_INPUT_ON_FAILURE", + env="env FILECHECK_OPTS= FILECHECK_DUMP_INPUT_ON_FAILURE=", lit=os.path.join(lit_path, 'lit.py')))) config.substitutions.append(('%{python}', '"%s"' % (sys.executable))) |

