diff options
author | Eric Wong <e@80x24.org> | 2021-09-02 22:36:47 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-02 22:48:52 +0000 |
commit | d369390960722fc56c86319134debe5cd7c0c7f6 (patch) | |
tree | 07256cee24d574c9487dd37435e116014901ba52 /t | |
parent | 2f993ff30854bd34b7dcdba01f38056a61aaf3b4 (diff) | |
download | public-inbox-d369390960722fc56c86319134debe5cd7c0c7f6.tar.gz |
Sharing a single lei-daemon across multiple processes still exhibits reliability problems, and reliably checking lei-daemon's inotify internals seems impossible without. Even without lei-daemon sharing, "make check-run" is a few seconds faster than "make check" for me.
Diffstat (limited to 't')
-rwxr-xr-x | t/run.perl | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -53,10 +53,11 @@ key2sub($_) for @tests; # precache my ($for_destroy, $lei_env, $lei_daemon_pid, $owner_pid); -# I get ECONNRESET from lei on FreeBSD 11.3 even with -# kern.ipc.soacceptqueue=1073741823, so persistent lei-daemon in tests -# is Linux-only for now: -if ($^O eq 'linux' && !$ENV{TEST_LEI_DAEMON_PERSIST_DIR} && +# TEST_LEI_DAEMON_PERSIST is currently broken. I get ECONNRESET from +# lei even with high kern.ipc.soacceptqueue=1073741823 or SOMAXCONN, not +# sure why. Also, testing our internal inotify usage is unreliable +# because lei-daemon uses a single inotify FD for all clients. +if ($ENV{TEST_LEI_DAEMON_PERSIST} && !$ENV{TEST_LEI_DAEMON_PERSIST_DIR} && (PublicInbox::Spawn->can('recv_cmd4') || eval { require Socket::MsgHdr })) { $lei_env = {}; |