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
2
1
# RUN: ulimit -n 50
3
2
# RUN: %{python} %S/print_limits.py
4
3
# 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 3
3
# ulimit does not work on non-POSIX platforms.
4
4
# UNSUPPORTED: system-windows
5
5
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
-
12
6
# RUN: not %{lit} -a -v %{inputs}/shtest-ulimit | FileCheck %s
13
7
14
8
# CHECK: -- Testing: 2 tests{{.*}}
18
12
# CHECK: 'ulimit' requires two arguments
19
13
20
14
# CHECK-LABEL: FAIL: shtest-ulimit :: ulimit_okay.txt ({{[^)]*}})
21
- # CHECK: ulimit -v 1048576
22
15
# CHECK: ulimit -n 50
23
- # CHECK: RLIMIT_AS=1073741824
24
16
# CHECK: RLIMIT_NOFILE=50
You can’t perform that action at this time.
0 commit comments