about summary refs log tree commit homepage
path: root/t/msgmap.t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-18 06:36:32 +0000
committerEric Wong <e@yhbt.net>2020-07-18 23:58:08 +0000
commit0ad076b1943bf7c65868d1db3cef4bd0ea1ef49a (patch)
treea34e119790fd3d9015f2fbd58d865ebe1769f5e3 /t/msgmap.t
parent340652d9833d9b7de4724a721e7014bfed262ccf (diff)
downloadpublic-inbox-0ad076b1943bf7c65868d1db3cef4bd0ea1ef49a.tar.gz
Noticed while reindexing a largish v2 inbox in parallel on an
SSD which required checkpointing and respawning shard workers.

Fixes: f06e84220e5566e7 ("over+msgmap: do not store filename after DBI->connect")
Diffstat (limited to 't/msgmap.t')
-rw-r--r--t/msgmap.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/msgmap.t b/t/msgmap.t
index f78070cc..1d7d1e87 100644
--- a/t/msgmap.t
+++ b/t/msgmap.t
@@ -64,4 +64,10 @@ my $tmp = $d->tmp_clone;
 is_deeply([$d->minmax], [$tmp->minmax], 'Cloned temporary DB matches');
 ok($tmp->mid_delete('spam@2'), 'temporary DB is writable');
 
+is(eval {
+        $tmp->atfork_prepare;
+        $tmp->atfork_parent;
+        'ok'
+}, 'ok', 'atfork_* work on tmp_clone');
+
 done_testing();