Skip to content

Commit 1066fda

Browse files
boomanaiden154luciechoi
authored andcommitted
[lit] Move ulimit_unlimited.txt test to non Darwin tests
This fails on MacOS because setting it to unlimited there just sets the limit to the max value which causes differences that show up in the check lines.
1 parent 73711a3 commit 1066fda

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# RUN: ulimit -f 5
2-
# RUN: %{python} %S/print_limits.py
2+
# RUN: %{python} %S/../shtest-ulimit/print_limits.py
33
# RUN: ulimit -f unlimited
4-
# RUN: %{python} %S/print_limits.py
4+
# RUN: %{python} %S/../shtest-ulimit/print_limits.py
55
# Fail the test so that we can assert on the output.
66
# RUN: not echo return

llvm/utils/lit/tests/shtest-ulimit-nondarwin.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@
66

77
# RUN: not %{lit} -a -v %{inputs}/shtest-ulimit-nondarwin | FileCheck %s
88

9-
# CHECK: -- Testing: 1 tests{{.*}}
9+
# CHECK: -- Testing: 2 tests{{.*}}
1010

1111
# CHECK-LABEL: FAIL: shtest-ulimit :: ulimit_okay.txt ({{[^)]*}})
1212
# CHECK: ulimit -v 1048576
1313
# CHECK: ulimit -s 256
1414
# CHECK: RLIMIT_AS=1073741824
1515
# CHECK: RLIMIT_STACK=262144
16+
17+
# CHECK-LABEL: FAIL: shtest-ulimit :: ulimit_unlimited.txt ({{[^)]*}})
18+
# CHECK: ulimit -f 5
19+
# CHECK: RLIMIT_FSIZE=5
20+
# CHECK: ulimit -f unlimited
21+
# CHECK: RLIMIT_FSIZE=-1

llvm/utils/lit/tests/shtest-ulimit.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# RUN: not %{lit} -a -v %{inputs}/shtest-ulimit --order=lexical \
1212
# RUN: | FileCheck -DBASE_NOFILE_LIMIT=%{readfile:%t.nofile_limit} %s
1313

14-
# CHECK: -- Testing: 4 tests{{.*}}
14+
# CHECK: -- Testing: 3 tests{{.*}}
1515

1616
# CHECK-LABEL: FAIL: shtest-ulimit :: ulimit-bad-arg.txt ({{[^)]*}})
1717
# CHECK: ulimit -n
@@ -25,9 +25,3 @@
2525

2626
# CHECK-LABEL: FAIL: shtest-ulimit :: ulimit_reset.txt ({{[^)]*}})
2727
# CHECK: RLIMIT_NOFILE=[[BASE_NOFILE_LIMIT]]
28-
29-
# CHECK-LABEL: FAIL: shtest-ulimit :: ulimit_unlimited.txt ({{[^)]*}})
30-
# CHECK: ulimit -f 5
31-
# CHECK: RLIMIT_FSIZE=5
32-
# CHECK: ulimit -f unlimited
33-
# CHECK: RLIMIT_FSIZE=-1

0 commit comments

Comments
 (0)