From c3fc0ffee333eaf4bee0af08cefa6c701e4f7f57 Mon Sep 17 00:00:00 2001 From: "Henrik G. Olsson" Date: Thu, 13 Nov 2025 09:41:01 -0800 Subject: [PATCH] [utils] don't warn when setting RLIMIT_NPROC fails on Solaris Solaris doesn't define RLIMIT_NPROC, so this is expected to fail there. This fixes a test failure in llvm/utils/lit/tests/verbosity.py on Solaris due to this unexpected warning being included in the lit output. --- llvm/utils/lit/lit/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/utils/lit/lit/run.py b/llvm/utils/lit/lit/run.py index 55de914d4d2e0..3fc4a1b9b40bd 100644 --- a/llvm/utils/lit/lit/run.py +++ b/llvm/utils/lit/lit/run.py @@ -137,10 +137,11 @@ def _increase_process_limit(self): "Raised process limit from %d to %d" % (soft_limit, desired_limit) ) except Exception as ex: - # Warn, unless this is Windows, z/OS, or Cygwin in which case this is expected. + # Warn, unless this is Windows, z/OS, Solaris or Cygwin in which case this is expected. if ( os.name != "nt" and platform.system() != "OS/390" + and platform.system() != "SunOS" and platform.sys.platform != "cygwin" ): self.lit_config.warning("Failed to raise process limit: %s" % ex)