From 53d36aaf9a856f523bd52de479a88f14338edda3 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 13 Sep 2007 08:44:26 +0200 Subject: Adapt tests/tail-2/ to use test-lib.sh. --- tests/tail-2/fflush | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'tests/tail-2/fflush') 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 & -- cgit v1.2.3-70-g09d2