]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid split/filter test failure on very low-mem system
authorJim Meyering <meyering@redhat.com>
Sun, 19 Aug 2012 15:34:04 +0000 (17:34 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 19 Aug 2012 15:34:04 +0000 (17:34 +0200)
* tests/split/filter: Use xz -1 when compressing, to minimize
memory usage.  Otherwise, xz could fail due to insufficient
virtual memory on a system with very little free memory.

tests/split/filter

index dbcac5f71f96480878f109cc30761e50964ff35c..7a55818e71ac8a657014408256c1f3c84593473f 100755 (executable)
@@ -29,7 +29,7 @@ for total_n_lines in 5 3000 20000; do
     # and would provide little added benefit.
     case $i:$total_n_lines in 2:5);; *) continue;; esac
 
-    split -l$i --filter='xz > $FILE.xz' in out- || fail=1
+    split -l$i --filter='xz -1 > $FILE.xz' in out- || fail=1
     xz -dc out-* > out || fail=1
     compare in out || fail=1
     rm -f out*