-
Notifications
You must be signed in to change notification settings - Fork 15.6k
[lit] Disable ulimit-nodarwin test on FreeBSD #173155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@llvm/pr-subscribers-testing-tools Author: None (aokblast) ChangesFreeBSD does not support using ulimit to grow up max file size. This characteristic is inherited by Darwin and thus we pass this test on FreeBSD as well. Full diff: https://github.com/llvm/llvm-project/pull/173155.diff 1 Files Affected:
diff --git a/llvm/utils/lit/tests/shtest-ulimit-nondarwin.py b/llvm/utils/lit/tests/shtest-ulimit-nondarwin.py
index d5340a7d2efb9..be2627be366ed 100644
--- a/llvm/utils/lit/tests/shtest-ulimit-nondarwin.py
+++ b/llvm/utils/lit/tests/shtest-ulimit-nondarwin.py
@@ -2,7 +2,7 @@
# ulimit does not work on non-POSIX platforms.
# These tests are specific to options that Darwin does not support.
-# UNSUPPORTED: system-windows, system-cygwin, system-darwin, system-aix, system-solaris
+# UNSUPPORTED: system-windows, system-cygwin, system-darwin, system-aix, system-solaris, system-freebsd
# RUN: not %{lit} -v %{inputs}/shtest-ulimit-nondarwin | FileCheck %s
|
boomanaiden154
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I should probably refactor this at some point after I better understand the landscape of what ulimit features are supported where. The portability of ulimit features in lit turned out to be significantly more complicated than I originally thought.
FreeBSD does not support using ulimit to grow up max file number per process. This characteristic is inherited by Darwin and thus we pass this test on FreeBSD as well.
d6df0ff to
471cf1a
Compare
Thanks. Adding this simple bypass also helps me learn alot. I have done some experiment yesterday cross multiple systems and get the following conclusions:
|
Yeah. We ran into this issue on Solaris too. I thought this would be portable, but that was just me not reading POSIX closely enough again...
These tests test the implementation of ulimit within the internal shell and all upstream test suites have been migrated to use the lit internal shell at this point, so shell differences should not matter at this point. |
|
FreeBSD does not support using ulimit to grow up max file number per
process. This characteristic is inherited by Darwin and thus we pass
this test on FreeBSD as well.