diff options
| author | Reid Kleckner <rnk@google.com> | 2019-10-30 16:10:24 -0700 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2019-10-30 16:11:16 -0700 |
| commit | 5632d3756cd589a8139099317829a746dab650ee (patch) | |
| tree | 59b2610e6f6bd0d878e7c8c0f6dc1f3e08ddc834 /llvm/utils | |
| parent | a925974bf166a83cfd45b0ca89c5c65d17f275cc (diff) | |
| download | bcm5719-llvm-5632d3756cd589a8139099317829a746dab650ee.tar.gz bcm5719-llvm-5632d3756cd589a8139099317829a746dab650ee.zip | |
[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.
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/lit/lit/run.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/lit/lit/run.py b/llvm/utils/lit/lit/run.py index 4971ce8c050..15e81447782 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: |

