From a3391407c960e4bbd825a34b87d053de6ef3767a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 28 Jul 2020 22:11:32 +0000 Subject: v2writable: use {inboxdir} for msgmap->tmp_clone Otherwise, a user is more likely to remove the msgmap-XXXXXXXX SQLite file from $TMPDIR and cause SQLite to error out. --- t/msgmap.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/msgmap.t b/t/msgmap.t index 1d7d1e87..437e106e 100644 --- a/t/msgmap.t +++ b/t/msgmap.t @@ -60,7 +60,7 @@ my $orig = $d->mid_insert('spam@1'); $d->mid_delete('spam@1'); is($d->mid_insert('spam@2'), 1 + $orig, "last number not recycled"); -my $tmp = $d->tmp_clone; +my $tmp = $d->tmp_clone($tmpdir); is_deeply([$d->minmax], [$tmp->minmax], 'Cloned temporary DB matches'); ok($tmp->mid_delete('spam@2'), 'temporary DB is writable'); -- cgit v1.2.3-24-ge0c7