summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-09-16 11:26:24 +0200
committerJim Meyering <jim@meyering.net>2007-09-16 11:29:57 +0200
commitdbab4177534fa8c674a0294d0400b8fa59630d6d (patch)
tree3c62e1b8196037fe6ca64d68c0c7ba88d1bd691d
parented2a9e96378476a0af467a9535235c14fa732437 (diff)
downloadcoreutils-dbab4177534fa8c674a0294d0400b8fa59630d6d.tar.xz
tests/misc/tac-continue: Arrange to remove a temporary file.
Signed-off-by: Jim Meyering <jim@meyering.net>
-rw-r--r--ChangeLog2
-rwxr-xr-xtests/misc/tac-continue3
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 097c2b481..e1f850e02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2007-09-16 Jim Meyering <jim@meyering.net>
+ * tests/misc/tac-continue: Arrange to remove a temporary file.
+
* tests/check.mk (vc_exe_in_TESTS): Don't rely on the value of
$(TESTS), so that "make check TESTS=test-name" works once again.
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