diff options
author | Pádraig Brady <P@draigBrady.com> | 2009-09-07 17:03:08 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2009-09-07 21:52:30 +0100 |
commit | fd9750b0ffb691d2ad97551eada5c2802df3c805 (patch) | |
tree | febea66b3dea3cf206d2b23d464ae5bfb45cbff3 | |
parent | a8d26b3ce1630b6e9213b79d213ad7c699ee9861 (diff) | |
download | coreutils-fd9750b0ffb691d2ad97551eada5c2802df3c805.tar.xz |
tests: tail-2/flush-initial should not rely on stdbuf
* tests/tail-2/flush-initial: stdbuf is not built on all systems.
In any case it's redundant since stdout will automatically be buffered
since we're redirecting to file. So just call tail without using stdbuf.
-rwxr-xr-x | tests/tail-2/flush-initial | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tail-2/flush-initial b/tests/tail-2/flush-initial index 515b29d8b..e0d79fe48 100755 --- a/tests/tail-2/flush-initial +++ b/tests/tail-2/flush-initial @@ -25,7 +25,9 @@ fi fail=0 echo line > in || fail=1 -stdbuf --output=1K tail -f in > out & +# Output should be buffered since we're writing to file +# so we're depending on the flush to write out +tail -f in > out & tail_pid=$! # Wait for 1 second for the file to be flushed. |