about summary refs log tree commit homepage
path: root/t/replace.t
diff options
context:
space:
mode:
Diffstat (limited to 't/replace.t')
-rw-r--r--t/replace.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/replace.t b/t/replace.t
index 24f7537c..039c6bc6 100644
--- a/t/replace.t
+++ b/t/replace.t
@@ -5,7 +5,6 @@ use warnings;
 use Test::More;
 use PublicInbox::MIME;
 use PublicInbox::InboxWritable;
-use File::Temp qw/tempdir/;
 require './t/common.perl';
 require_git(2.6); # replace is v2 only, for now...
 foreach my $mod (qw(DBD::SQLite)) {
@@ -17,7 +16,7 @@ sub test_replace ($$$) {
         my ($v, $level, $opt) = @_;
         diag "v$v $level replace";
         my $this = "pi-$v-$level-replace";
-        my $tmpdir = tempdir("$this-tmp-XXXXXX", TMPDIR => 1, CLEANUP => 1);
+        my ($tmpdir, $for_destroy) = tmpdir($this);
         my $ibx = PublicInbox::Inbox->new({
                 inboxdir => "$tmpdir/testbox",
                 name => $this,