diff options
author | Pádraig Brady <P@draigBrady.com> | 2013-06-03 01:29:17 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-06-03 14:31:37 +0100 |
commit | eadf835794d7a4087d9bd366661364d5d8119afa (patch) | |
tree | 5d36b5955b1faff1ccf5c1ad92e00c45d7c0962c /bootstrap | |
parent | e3a34e14f54a117b607c73a7309c2c2c55d5b3a1 (diff) | |
download | coreutils-eadf835794d7a4087d9bd366661364d5d8119afa.tar.xz |
tests: avoid a race in tail --retry testing
Prompted by the continuous integration build failure at:
http://hydra.nixos.org/build/5221053
* tests/tail-2/retry.sh: Ensure the 'out' file is truncated,
as it's used to arbitrate the run order of commands.
Relying on the truncation in the background tail command
is racy because the truncation can occur after the fork
of the background shell and thus wait4lines would not wait
for output to occur in 'out', which would mean that the
'missing' file could be populated by the time tail(1)
gets to process it.
Diffstat (limited to 'bootstrap')
0 files changed, 0 insertions, 0 deletions