From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 9EAB01F9FC for ; Fri, 19 Mar 2021 12:41:04 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/lei-externals: add diagnostic for warning Date: Fri, 19 Mar 2021 12:41:03 +0000 Message-Id: <20210319124103.78210-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Not sure where it's coming from, but I saw it fail, once (and we should be doing more "or diag ..." anyways to improve diagnostics). --- t/lei-externals.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/lei-externals.t b/t/lei-externals.t index 2a92d101..915f25ad 100644 --- a/t/lei-externals.t +++ b/t/lei-externals.t @@ -229,7 +229,8 @@ SKIP: { is(scalar(@s), 2, "2 results in mbox$sfx"); lei_ok('q', '-a', '-o', "mboxcl2:$f", 's:nonexistent'); - is(grep(!/^#/, $lei_err), 0, "no errors on no results ($sfx)"); + is(grep(!/^#/, $lei_err), 0, "no errors on no results ($sfx)") + or diag $lei_err; my @s2 = grep(/^Subject:/, $cat->()); is_deeply(\@s2, \@s,