]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/nntpd.t
t/imapd.t: skip dependent test on failure
[public-inbox.git] / t / nntpd.t
index a3d974cfd2d92b6b6f1c995e9c720cc6287f0ce7..c7a7ee6bb3ad512a1ed0b12807ae93016a58be7d 100644 (file)
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -295,6 +295,8 @@ Date: Fri, 02 Oct 1993 00:00:00 +0000
                'cross newsgroup BODY by Message-ID');
        ok($n->head('<testmessage@example.com>'),
                'cross newsgroup HEAD by Message-ID');
+       is($n->xpath('<testmessage@example.com>'), 'x.y.z/1', 'xpath hit');
+       is($n->xpath('<non-existent@example.com>'), undef, 'xpath miss');
 
        # pipelined requests:
        {
@@ -347,7 +349,7 @@ Date: Fri, 02 Oct 1993 00:00:00 +0000
        # -compact requires Xapian
        SKIP: {
                require_mods('Search::Xapian', 2);
-               which('xapian-compact') or skip 'xapian-compact missing', 2;
+               have_xapian_compact or skip 'xapian-compact missing', 2;
                is(xsys(qw(git config), "--file=$home/.public-inbox/config",
                                "publicinbox.$group.indexlevel", 'medium'),
                        0, 'upgraded indexlevel');