summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/FileCheck/lit.local.cfg13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/FileCheck/lit.local.cfg b/llvm/test/FileCheck/lit.local.cfg
new file mode 100644
index 00000000000..307da456c38
--- /dev/null
+++ b/llvm/test/FileCheck/lit.local.cfg
@@ -0,0 +1,13 @@
+# Unset environment variables that the FileCheck tests
+# expect not to be set.
+file_check_expected_unset_vars = [
+ 'FILECHECK_DUMP_INPUT_ON_FAILURE',
+ 'FILECHECK_OPTS',
+]
+
+for env_var in file_check_expected_unset_vars:
+ if env_var in config.environment:
+ lit_config.note('Removing {} from environment for FileCheck tests'.format(
+ env_var)
+ )
+ config.environment.pop(env_var)
OpenPOWER on IntegriCloud