diff options
author | Pádraig Brady <P@draigBrady.com> | 2010-01-13 12:19:26 +0000 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-01-13 13:42:49 +0100 |
commit | e55d8828111bf6f9ff0f419fe0045de6ecd1ecaa (patch) | |
tree | 0f9cfe946e27e5338cf2a03a3f4ed546165934f5 /tests/tail-2/inotify-hash-abuse2 | |
parent | f28c7d959be30be0b216880878e8b0909d810a18 (diff) | |
download | coreutils-e55d8828111bf6f9ff0f419fe0045de6ecd1ecaa.tar.xz |
tests: avoid spurious failures on older shells
* tests/tail-2/inotify-hash-abuse: Use kill rather than wait
to determine if the tail process is still running.
* tests/tail-2/inotify-hash-abuse2: Ditto.
Diffstat (limited to 'tests/tail-2/inotify-hash-abuse2')
-rwxr-xr-x | tests/tail-2/inotify-hash-abuse2 | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/tail-2/inotify-hash-abuse2 b/tests/tail-2/inotify-hash-abuse2 index 4fe080bd2..2e567c799 100755 --- a/tests/tail-2/inotify-hash-abuse2 +++ b/tests/tail-2/inotify-hash-abuse2 @@ -36,15 +36,7 @@ for i in $(seq 200); do touch f done -# Fixed tail will not have aborted. Kill it. -kill -HUP $pid - -wait $pid -st=$? - -case $st in - 129) ;; - *) echo tail died via unexpected signal: $st; fail=1;; -esac +# Kill the working tail, or fail if it has already aborted +kill $pid || fail=1 Exit $fail |