Skip to content

Conversation

@hnrklssn
Copy link
Member

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.

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.
@llvmbot
Copy link
Member

llvmbot commented Nov 13, 2025

@llvm/pr-subscribers-testing-tools

Author: Henrik G. Olsson (hnrklssn)

Changes

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.


Full diff: https://github.com/llvm/llvm-project/pull/167921.diff

1 Files Affected:

  • (modified) llvm/utils/lit/lit/run.py (+2-1)
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)

@hnrklssn
Copy link
Member Author

@rorth How do I verify that this actually works on Solaris?

@hnrklssn hnrklssn changed the title [utils] don't warn when setting RLIMIT_NPROC fails on Solaris [utils] don't warn when setting rlimit fails on Solaris Nov 13, 2025
@rorth
Copy link
Collaborator

rorth commented Nov 14, 2025

You could use the Solaris systems in the Cfarm, which has both Solaris/sparcv9 and Solaris/amd systems, both with current LLVM installed.

However, I've run a fresh build locally last night, which now PASSes with your patch, so I think it's good to go.

Copy link
Collaborator

@rorth rorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@hnrklssn hnrklssn merged commit 8e4209a into llvm:main Nov 14, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants