From: Pádraig Brady
Date: Thu, 11 Feb 2010 17:38:56 +0000 (+0000) Subject: tests: fix an unlikely race in tail-2/inotify-hash-abuse2 X-Git-Tag: v8.5~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a2f81776adfc8d8ad39dd775648ee841aa352752;p=thirdparty%2Fcoreutils.git tests: fix an unlikely race in tail-2/inotify-hash-abuse2 * tests/tail-2/inotify-hash-abuse2: Explicitly kill the process by using cleanup_() rather than using a timeout which may trigger a failure on very slow systems (< 20 iterations of the loop per second). --- diff --git a/tests/tail-2/inotify-hash-abuse2 b/tests/tail-2/inotify-hash-abuse2 index 2e567c799f..c0cca2338e 100755 --- a/tests/tail-2/inotify-hash-abuse2 +++ b/tests/tail-2/inotify-hash-abuse2 @@ -28,7 +28,8 @@ touch f || framework_failure debug='---disable-inotify -s .001' debug= -timeout 10 tail $debug -F f & pid=$! +tail $debug -F f & pid=$! +cleanup_() { kill $pid; } for i in $(seq 200); do kill -0 $pid || break;