summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-12-13 08:07:25 +0100
committerJim Meyering <meyering@redhat.com>2010-12-13 08:28:19 +0100
commit8351407f874ab3d6fc0830e78a6c234bf1583e3f (patch)
treed1ebd8d4395b37dec195df8770e12d89ef3e7c2e /tests/misc
parentb212633c41870cd4b68b8522041b51429b1ba1bd (diff)
downloadcoreutils-8351407f874ab3d6fc0830e78a6c234bf1583e3f.tar.xz
tests: mark new test as very expensive
* 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.
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/sort-stale-thread-mem5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/misc/sort-stale-thread-mem b/tests/misc/sort-stale-thread-mem
index c4f4fcbb3..8ad60ed37 100755
--- a/tests/misc/sort-stale-thread-mem
+++ b/tests/misc/sort-stale-thread-mem
@@ -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