Skip to content

Commit 8e4209a

Browse files
authored
[utils] don't warn when setting rlimit fails on Solaris (#167921)
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.
1 parent 52f2a94 commit 8e4209a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/utils/lit/lit/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,11 @@ def _increase_process_limit(self):
137137
"Raised process limit from %d to %d" % (soft_limit, desired_limit)
138138
)
139139
except Exception as ex:
140-
# Warn, unless this is Windows, z/OS, or Cygwin in which case this is expected.
140+
# Warn, unless this is Windows, z/OS, Solaris or Cygwin in which case this is expected.
141141
if (
142142
os.name != "nt"
143143
and platform.system() != "OS/390"
144+
and platform.system() != "SunOS"
144145
and platform.sys.platform != "cygwin"
145146
):
146147
self.lit_config.warning("Failed to raise process limit: %s" % ex)

0 commit comments

Comments
 (0)