From b64ce2044b0a9413855ad63ded4ddc9433e4ea9b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 22 Nov 2023 00:13:31 +0000 Subject: lei_to_mail: don't close STDOUT unless it is a mbox* output We only care about error checking when stdout is an mbox output pointed to a pathname. This is noticeable with `lei up' with multiple non-mbox* destinations. We'll also ensure throwing exceptions to trigger lei->x_it from lei->do_env results in the epoll/kqueue watch being discarded, otherwise commands may never terminate (leading to stuck tests) --- t/lei-q-save.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 't') diff --git a/t/lei-q-save.t b/t/lei-q-save.t index a9f9d4d6..0970bc3c 100644 --- a/t/lei-q-save.t +++ b/t/lei-q-save.t @@ -305,5 +305,7 @@ EOM is(scalar(@new), 2, 'got new message'); is_xdeeply([grep { $_ eq $orig[0] } @new], \@orig, 'original message preserved on up w/ threads'); + lei_ok 'up', "$home/md", $d, \'multiple maildir up'; + unlike $lei_err, qr! line \d+!s, 'no warnings'; }); done_testing; -- cgit v1.2.3-24-ge0c7