aboutsummaryrefslogtreecommitdiff
path: root/t/02auto.t
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2020-01-22 10:16:15 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2020-01-22 10:16:15 +0200
commit68be041dd11573aff08847748456040b9ef3f0b4 (patch)
tree62ef33804f0bafd8102415bbb6e31a528c35b560 /t/02auto.t
parent59376e36716be20a2a517231ef597b3687c45b0e (diff)
downloadfile-backup-68be041dd11573aff08847748456040b9ef3f0b4.tar.gz
file-backup-68be041dd11573aff08847748456040b9ef3f0b4.tar.bz2
Bugfixes
* lib/File/BackupCopy.pm (backup_copy_internal): Clear unlink_on_destroy on success. * t/02auto.t: close FH to avoid spurious warnings * t/TestBackup.pm: Fix incorrect range.
Diffstat (limited to 't/02auto.t')
-rw-r--r--t/02auto.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/02auto.t b/t/02auto.t
index 0a01d84..61b24ed 100644
--- a/t/02auto.t
+++ b/t/02auto.t
@@ -30,6 +30,7 @@ ok($name, File::Spec->catfile('subdir','a~'));
fileok('a', $name);
ok(open(FH, '>', File::Spec->catfile('subdir','a.~1~')));
+close FH;
$name = backup_copy_auto('a', dir => 'subdir');
ok($name, File::Spec->catfile('subdir','a.~2~'));
fileok('a', $name);

Return to:

Send suggestions and report system problems to the System administrator.