projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11d84c1
)
tests: fix an unlikely race in tail-2/inotify-hash-abuse2
author
Pádraig Brady
<P@draigBrady.com>
Thu, 11 Feb 2010 17:38:56 +0000
(17:38 +0000)
committer
Pádraig Brady
<P@draigBrady.com>
Tue, 16 Feb 2010 00:51:38 +0000
(
00:51
+0000)
* 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).
tests/tail-2/inotify-hash-abuse2
patch
|
blob
|
history
diff --git
a/tests/tail-2/inotify-hash-abuse2
b/tests/tail-2/inotify-hash-abuse2
index 2e567c799f133e6fc9c6d89cc307c07f9e76be60..c0cca2338ee828853087b373cbc122c7dca46424 100755
(executable)
--- 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;