From 8351407f874ab3d6fc0830e78a6c234bf1583e3f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 13 Dec 2010 08:07:25 +0100 Subject: 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. --- tests/misc/sort-stale-thread-mem | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/misc') 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 -- cgit v1.2.3-70-g09d2