From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 86D661F55F for ; Thu, 14 Sep 2023 13:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1694696546; bh=In4HDlMscSgVhcBtf2YpjUjvH4U9gyNL+AgcURZpeFY=; h=Date:From:To:Subject:References:In-Reply-To:From; b=5QIu3vMrctmNiQiWklkGiKqLy3ra8hiMCLKGGACIxJzGMMdkHzBrp4zkgryg8kj1Y 2bRJlYR4UTGrSkxJ6PS/ZB+4fUyLRvphuFzNogLKiIFqOlG2cKLGL2tsa4exll4QoS LY4cn+Wlm1Kyvvm2VuRJN2wHgE8KA/OnTyz6pMkE= Date: Thu, 14 Sep 2023 13:02:26 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/1] test_common: call DS->Reset instead of cleanup_task Message-ID: <20230914130226.M433545@dcvr> References: <20230914125056.1898553-1-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230914125056.1898553-1-e@80x24.org> List-Id: cleanup_task is long gone since all that cleanup work got moved into DS itself. Forcing a Reset here may solve some cleanup segfaults I've noticed on OpenBSD 7.3 (and no other OSes). --- lib/PublicInbox/TestCommon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index a8323e4d..a0c3d065 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -365,7 +365,7 @@ sub run_script ($;$$) { chdir $d or die "chdir $d: $!"; } _run_sub($sub, $key, \@argv); - eval { PublicInbox::Inbox::cleanup_task() }; + eval { PublicInbox::DS->Reset() }; die "fchdir(restore): $!" if $cwdfh && !chdir($cwdfh); _undo_redirects($orig_io); select STDOUT;