diff options
author | Eric Wong <e@yhbt.net> | 2020-07-28 22:11:32 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-29 11:32:50 +0000 |
commit | a3391407c960e4bbd825a34b87d053de6ef3767a (patch) | |
tree | 11026260b9886ff741cb416820e44f84a7c3c258 /t | |
parent | 81baaec0a1ebb05b2b31f084a7b18fd7bedb5d4a (diff) | |
download | public-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.t | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'); |