Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions llvm/utils/lit/lit/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ 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 or z/OS, in which case this is expected.
if os.name != "nt" and platform.system() != "OS/390":
# Warn, unless this is Windows, z/OS, or Cygwin in which case this is expected.
if (
os.name != "nt"
and platform.system() != "OS/390"
and platform.sys.platform != "cygwin"
):
self.lit_config.warning("Failed to raise process limit: %s" % ex)
2 changes: 1 addition & 1 deletion llvm/utils/lit/tests/shtest-ulimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ulimit does not work on non-POSIX platforms.
# Solaris for some reason does not respect ulimit -n, so mark it unsupported
# as well.
# UNSUPPORTED: system-windows, system-solaris
# UNSUPPORTED: system-windows, system-cygwin, system-solaris

# RUN: not %{lit} -a -v %{inputs}/shtest-ulimit --order=lexical | FileCheck %s

Expand Down