diff options
author | Jim Meyering <jim@meyering.net> | 2007-09-13 08:44:26 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-09-15 08:40:39 +0200 |
commit | 53d36aaf9a856f523bd52de479a88f14338edda3 (patch) | |
tree | d43c74c6219ab7e0f8d294c131189034b15bea47 /tests/tail-2/fflush | |
parent | 10d190b8b6289f8a4b4818bd03b8f3a5dc87fd14 (diff) | |
download | coreutils-53d36aaf9a856f523bd52de479a88f14338edda3.tar.xz |
Adapt tests/tail-2/ to use test-lib.sh.
Diffstat (limited to 'tests/tail-2/fflush')
-rwxr-xr-x | tests/tail-2/fflush | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/tests/tail-2/fflush b/tests/tail-2/fflush index 6711818e9..020601f17 100755 --- a/tests/tail-2/fflush +++ b/tests/tail-2/fflush @@ -3,7 +3,7 @@ # The problem was that using the solaris5.7 setvbuf function to turn off # buffering doesn't flush stdout. -# Copyright (C) 1999, 2000, 2003, 2006 Free Software Foundation, Inc. +# Copyright (C) 1999, 2000, 2003, 2006-2007 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -29,18 +29,7 @@ if test "$VERBOSE" = yes; then tail --version fi -tmp=tail-flush.$$ -pwd=`pwd` -trap 'cd "$pwd" && rm -rf $tmp' 0 1 2 3 15 - -test_failure=0 -mkdir $tmp || test_failure=1 -cd $tmp || test_failure=1 - -if test $test_failure = 1; then - echo 'failure in testing framework' - exit 1 -fi +. $srcdir/../test-lib.sh echo fubar > in tail -f in | cat > out & |