File tree Expand file tree Collapse file tree 4 files changed +19
-9
lines changed Expand file tree Collapse file tree 4 files changed +19
-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 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
7
+ # RUN: %if system-linux %{ not %{lit} -a -v %{inputs}/shtest-ulimit-linux | FileCheck %s --check-prefix CHECK-LINUX %}
13
8
14
9
# CHECK: -- Testing: 2 tests{{.*}}
15
10
18
13
# CHECK: 'ulimit' requires two arguments
19
14
20
15
# CHECK-LABEL: FAIL: shtest-ulimit :: ulimit_okay.txt ({{[^)]*}})
21
- # CHECK: ulimit -v 1048576
22
16
# CHECK: ulimit -n 50
23
- # CHECK: RLIMIT_AS=1073741824
24
17
# CHECK: RLIMIT_NOFILE=50
18
+
19
+ # CHECK-LINUX: -- Testing: 1 tests{{.*}}
20
+
21
+ # CHECK-LINUX-LABEL: FAIL: shtest-ulimit :: ulimit_okay.txt ({{[^)]*}})
22
+ # CHECK-LINUX: ulimit -v 1048576
23
+ # CHECK-LINUX: RLIMIT_AS=1073741824
You can’t perform that action at this time.
0 commit comments