]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: mark new test as very expensive
authorJim Meyering <meyering@redhat.com>
Mon, 13 Dec 2010 07:07:25 +0000 (08:07 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 13 Dec 2010 07:28:19 +0000 (08:28 +0100)
* tests/misc/sort-stale-thread-mem: Don't initialize fail=0 here;
that is done in init.sh.  This avoids a syntax-check failure.
Invoke "Exit $fail" at end, too.
Mark as a very expensive test.

tests/misc/sort-stale-thread-mem

index c4f4fcbb3592a639831c4b3e5117c2cdf95f1e79..8ad60ed37a11ce16591d8017db91e3da8f51b237 100755 (executable)
@@ -21,7 +21,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ sort
 
-expensive_
+very_expensive_
 
 valgrind --help >/dev/null || skip_ "requires valgrind"
 test "$(nproc)" = 1 && skip_ "requires a multi-core system"
@@ -36,9 +36,10 @@ test "$(nproc)" = 1 && skip_ "requires a multi-core system"
 # on some circa-2010 multicore Linux platforms.  Run the test 10 times
 # so that the probability of missing the bug should be about 1 in
 # 2**100 on these hosts.
-fail=0
 for i in $(seq 100); do
   valgrind --quiet --error-exitcode=3 \
       sort -S 100K --parallel=2 in > /dev/null ||
     { fail=$?; echo iteration $i failed; Exit $fail; }
 done
+
+Exit $fail