From ed09d351984320fe3acf10e42229c1b76e8b3dc5 Mon Sep 17 00:00:00 2001 From: Michal Gorny Date: Fri, 26 Jul 2019 15:39:05 +0000 Subject: [PATCH] [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 --- utils/lit/tests/lit.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/lit/tests/lit.cfg b/utils/lit/tests/lit.cfg index 2830956f80d..e1034dc225a 100644 --- a/utils/lit/tests/lit.cfg +++ b/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)))