]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: tail-2/flush-initial should not rely on stdbuf
authorPádraig Brady <P@draigBrady.com>
Mon, 7 Sep 2009 16:03:08 +0000 (17:03 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 7 Sep 2009 20:52:30 +0000 (21:52 +0100)
* 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.

tests/tail-2/flush-initial

index 515b29d8b9e50058c639b5d373624876ccd6aca4..e0d79fe48072dbf4833eebc2bc6aec1e6175d18a 100755 (executable)
@@ -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.