diff options
-rwxr-xr-x | tests/misc/sort-continue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/misc/sort-continue b/tests/misc/sort-continue index b1031fac3..1b0ef431c 100755 --- a/tests/misc/sort-continue +++ b/tests/misc/sort-continue @@ -23,6 +23,10 @@ fi . $srcdir/test-lib.sh +# Skip the test when running under valgrind. +( ulimit -n 6; sort < /dev/null ) \ + || skip_test_ 'fd-limited sort failed; are you running under valgrind?' + for i in $(seq 31); do echo $i | tee -a in > __test.$i || framework_failure done @@ -40,7 +44,7 @@ echo 32 | tee -a in > in1 ( ulimit -n 6 exec 3<&- 4<&- 5<&- - cat in1 | sort -n -m __test.* - > out + sort -n -m __test.* - < in1 > out ) && compare in out || { fail=1; echo 'stdin not handled properly' 1>&2; } |