| 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-cygwin, system-darwin, system-aix, system-solaris, system-freebsd |
| 6 |
|
| 7 |
# RUN: not %{lit} -v %{inputs}/shtest-ulimit-nondarwin | FileCheck %s |
| 8 |
|
| 9 |
# CHECK: -- Testing: 2 tests{{.*}} |
| 10 |
|
| 11 |
# CHECK-LABEL: FAIL: shtest-ulimit :: ulimit_okay.txt ({{[^)]*}}) |
| 12 |
# CHECK: ulimit -v 1048576 |
| 13 |
# CHECK: ulimit -s 256 |
| 14 |
# CHECK: RLIMIT_AS=1073741824 |
| 15 |
# 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 |