From 7234e6718e62840d94de3d04b87eee28bf5c4682 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 13 Jul 2023 05:39:17 +0000 Subject: t/imapd: workaround a Perl 5.36.0 readline regression Buffered readline (and read) ops under Perl 5.36.0 fails to read new data after writes are made by other file handles (or processes). To fix and improve our test, introduce a new, (currently) test-only TailNotify class to use inotify or kevent if available to workaround it while avoiding infinite polling loops. Further refinements to these test APIs since we use the same pattern for testing daemons in many places. This also fixes the TEST_KILL_IMAPD condition in t/imapd.t under GNU/Linux, AFAIK that test was never reliable under FreeBSD. Link: https://bugs.debian.org/1040947 --- MANIFEST | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MANIFEST') diff --git a/MANIFEST b/MANIFEST index dc895016..44eaa497 100644 --- a/MANIFEST +++ b/MANIFEST @@ -338,6 +338,7 @@ lib/PublicInbox/Spawn.pm lib/PublicInbox/SpawnPP.pm lib/PublicInbox/Syscall.pm lib/PublicInbox/TLS.pm +lib/PublicInbox/TailNotify.pm lib/PublicInbox/TestCommon.pm lib/PublicInbox/Tmpfile.pm lib/PublicInbox/URIimap.pm @@ -579,6 +580,7 @@ t/solve/bare.patch t/solver_git.t t/spamcheck_spamc.t t/spawn.t +t/tail_notify.t t/thread-cycle.t t/thread-index-gap.t t/time.t -- cgit v1.2.3-24-ge0c7