From 1c19a0f4a85e540b64e210fd8143a9f784f17b85 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Thu, 17 Oct 2013 13:11:13 +0000 Subject: [PATCH] Lit: LIT_PRESERVES_TMP should be aware of TMPDIR, too. TMPDIR is preferred in Unix. llvm-svn: 192891 --- llvm/utils/lit/lit/TestingConfig.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py index 748cf1f6b80e..4a34b77e175b 100644 --- a/llvm/utils/lit/lit/TestingConfig.py +++ b/llvm/utils/lit/lit/TestingConfig.py @@ -35,13 +35,14 @@ class TestingConfig: 'TMP' : os.environ.get('TMP',''), }) - # The option to preserve TMP (and TEMP). + # The option to preserve TEMP, TMP, and TMPDIR. # This is intended to check how many temporary files would be generated - # in automated builders. + # (and be not cleaned up) in automated builders. if os.environ.has_key('LIT_PRESERVES_TMP'): environment.update({ 'TEMP' : os.environ.get('TEMP',''), 'TMP' : os.environ.get('TMP',''), + 'TMPDIR' : os.environ.get('TMPDIR',''), }) # Set the default available features based on the LitConfig.