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=-4.0 required=3.0 tests=ALL_TRUSTED,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 C45A61F4B4 for ; Mon, 14 Sep 2020 21:29:41 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/imapd.t: skip dependent test on failure Date: Mon, 14 Sep 2020 21:29:40 +0000 Message-Id: <20200914212940.765-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We don't want to cascade failures/warnings when something else breaks. There's likely more of these to be fixed as we encounter them. --- t/imapd.t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/t/imapd.t b/t/imapd.t index f743bf06..cb95fa5d 100644 --- a/t/imapd.t +++ b/t/imapd.t @@ -404,8 +404,11 @@ SKIP: { skip 'Xapian missing', 3 if $level eq 'basic'; my $x = $mic->search(qw(header subject embedded)); is(scalar(@$x), 1, 'MSN SEARCH on Subject works after rm'); - $x = $mic->message_string($x->[0]); - is($x, $ret->{2}->{RFC822}, 'message 2 unchanged'); + SKIP: { + skip 'previous test failed', 1 if !scalar(@$x); + $x = $mic->message_string($x->[0]); + is($x, $ret->{2}->{RFC822}, 'message 2 unchanged'); + } $x = $mic->search(qw(text embedded)); is(scalar(@$x), 1, 'MSN SEARCH on TEXT works after rm'); }