File tree Expand file tree Collapse file tree 5 files changed +25
-9
lines changed Expand file tree Collapse file tree 5 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 1+ import lit.formats
2+
3+ config.name = " shtest-ulimit"
4+ config.suffixes = [" .txt" ]
5+ config.test_format = lit.formats.ShTest(execute_external =False)
6+ config.test_source_root = None
7+ config.test_exec_root = None
8+ config.substitutions.append((" %{python}" , ' "%s"' % (sys.executable)))
Original file line number Diff line number Diff line change 1+ # RUN: ulimit -v 1048576
2+ # RUN: %{python} %S/../shtest-ulimit/print_limits.py
3+ # Fail the test so that we can assert on the output.
4+ # RUN: not echo return
Original file line number Diff line number Diff line change 1- # RUN: ulimit -v 1048576
21# RUN: ulimit -n 50
32# RUN: %{python} %S/print_limits.py
43# Fail the test so that we can assert on the output.
Original file line number Diff line number Diff line change 1+ # Check the ulimit command
2+
3+ # ulimit does not work on non-POSIX platforms.
4+ # These tests are specific to options that Darwin does not support.
5+ # UNSUPPORTED: system-windows, system-darwin
6+
7+ # RUN: not %{lit} -a -v %{inputs}/shtest-ulimit-nondarwin | FileCheck %s
8+
9+ # CHECK: -- Testing: 1 tests{{.*}}
10+
11+ # CHECK-LABEL: FAIL: shtest-ulimit :: ulimit_okay.txt ({{[^)]*}})
12+ # CHECK: ulimit -v 1048576
13+ # CHECK: RLIMIT_AS=1073741824
Original file line number Diff line number Diff line change 33# ulimit does not work on non-POSIX platforms.
44# UNSUPPORTED: system-windows
55
6- # TODO(boomanaiden154): The test fails on some non-Linux POSIX
7- # platforms (like MacOS) due to the underlying system not supporting
8- # ulimit -v. This test needs to be carved up so we keep full test
9- # coverage on Linux and as much as possible on other platforms.
10- # REQUIRES: system-linux
11-
126# RUN: not %{lit} -a -v %{inputs}/shtest-ulimit | FileCheck %s
137
148# CHECK: -- Testing: 2 tests{{.*}}
1812# CHECK: 'ulimit' requires two arguments
1913
2014# CHECK-LABEL: FAIL: shtest-ulimit :: ulimit_okay.txt ({{[^)]*}})
21- # CHECK: ulimit -v 1048576
2215# CHECK: ulimit -n 50
23- # CHECK: RLIMIT_AS=1073741824
2416# CHECK: RLIMIT_NOFILE=50
You can’t perform that action at this time.
0 commit comments