about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-28 22:11:32 +0000
committerEric Wong <e@yhbt.net>2020-07-29 11:32:50 +0000
commita3391407c960e4bbd825a34b87d053de6ef3767a (patch)
tree11026260b9886ff741cb416820e44f84a7c3c258 /t
parent81baaec0a1ebb05b2b31f084a7b18fd7bedb5d4a (diff)
downloadpublic-inbox-a3391407c960e4bbd825a34b87d053de6ef3767a.tar.gz
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.
Diffstat (limited to 't')
-rw-r--r--t/msgmap.t2
1 files changed, 1 insertions, 1 deletions
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');