diff options
author | Pádraig Brady <P@draigBrady.com> | 2010-02-11 17:38:56 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2010-02-16 00:51:38 +0000 |
commit | a2f81776adfc8d8ad39dd775648ee841aa352752 (patch) | |
tree | e656a0824c9bcdf62b279c92204e7042b8cd197c /tests | |
parent | 11d84c10ce88772482c4b99b0bfd730778c437a0 (diff) | |
download | coreutils-a2f81776adfc8d8ad39dd775648ee841aa352752.tar.xz |
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).
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tail-2/inotify-hash-abuse2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tail-2/inotify-hash-abuse2 b/tests/tail-2/inotify-hash-abuse2 index 2e567c799..c0cca2338 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; |