| Revision 4120,
703 bytes
checked in by sam, 3 years ago
(diff) |
|
Add a workaround in the test suite for a cowdancer limitation causing .ilist
corruption and use ulimit instead of limit.
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | . "$(dirname "$0")/functions.inc" |
|---|
| 4 | |
|---|
| 5 | ulimit -c 0 |
|---|
| 6 | |
|---|
| 7 | PROGRAM="$DIR/bug-memory" |
|---|
| 8 | if [ ! -f "$PROGRAM" ]; then |
|---|
| 9 | echo "error: test/bug-memory is missing" |
|---|
| 10 | exit 1 |
|---|
| 11 | fi |
|---|
| 12 | |
|---|
| 13 | start_test "zzuf memory exhaustion test" |
|---|
| 14 | |
|---|
| 15 | new_test "bug-memory < /file-00" |
|---|
| 16 | if ! $PROGRAM < "$DIR/file-00"; then |
|---|
| 17 | fail_test " unexpected exit status $?" |
|---|
| 18 | else |
|---|
| 19 | pass_test " OK" |
|---|
| 20 | fi |
|---|
| 21 | |
|---|
| 22 | new_test "zzuf -qi -r0 bug-memory < /file-00" |
|---|
| 23 | if ! $ZZUF -r0 -qi "$PROGRAM" < "$DIR/file-00"; then |
|---|
| 24 | fail_test " unexpected exit status $?" |
|---|
| 25 | else |
|---|
| 26 | pass_test " OK" |
|---|
| 27 | fi |
|---|
| 28 | |
|---|
| 29 | new_test "zzuf -qi bug-memory < file-00" |
|---|
| 30 | if $ZZUF -M 256 -qi "$PROGRAM" < "$DIR/file-00"; then |
|---|
| 31 | fail_test " unexpected exit status $?" |
|---|
| 32 | else |
|---|
| 33 | pass_test " OK" |
|---|
| 34 | fi |
|---|
| 35 | |
|---|
| 36 | stop_test |
|---|
| 37 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.