From dbab4177534fa8c674a0294d0400b8fa59630d6d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 16 Sep 2007 11:26:24 +0200 Subject: tests/misc/tac-continue: Arrange to remove a temporary file. Signed-off-by: Jim Meyering --- tests/misc/tac-continue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/misc/tac-continue b/tests/misc/tac-continue index aa8f69d1e..0c1319404 100755 --- a/tests/misc/tac-continue +++ b/tests/misc/tac-continue @@ -38,8 +38,9 @@ if ! test -d "$FULL_PARTITION_TMPDIR"; then (exit 1); exit 1 fi - fp_tmp="$FULL_PARTITION_TMPDIR/tac-cont-$$" +cleanup_() { rm -f "$fp_tmp"; } + # Make sure we can create an empty file there (i.e. no shortage of inodes). if ! touch $fp_tmp; then echo "$0: $fp_tmp: cannot create empty file" 1>&2 -- cgit v1.2.3-70-g09d2