From 5632d3756cd589a8139099317829a746dab650ee Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 30 Oct 2019 16:10:24 -0700 Subject: [PATCH] [lit] Silence warning about importing the resource module on Windows lit was printing this warning on every test run on Windows, and that is not necessary. --- llvm/utils/lit/lit/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/utils/lit/lit/run.py b/llvm/utils/lit/lit/run.py index 4971ce8..15e8144 100644 --- a/llvm/utils/lit/lit/run.py +++ b/llvm/utils/lit/lit/run.py @@ -163,7 +163,9 @@ class ParallelRun(Run): self.lit_config.note('Raised process limit from %d to %d' % \ (soft_limit, desired_limit)) except Exception as ex: - self.lit_config.warning('Failed to raise process limit: %s' % ex) + # Warn, unless this is Windows, in which case this is expected. + if os.name != 'nt': + self.lit_config.warning('Failed to raise process limit: %s' % ex) def _install_win32_signal_handler(self, pool): if lit.util.win32api is not None: -- 2.7.4