* [PATCH] skip search test if search support is missing
@ 2015-08-16 20:53 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2015-08-16 20:53 UTC (permalink / raw)
To: meta; +Cc: Eric Wong
We will not require Search::Xapian to be installed.
---
t/search.t | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/t/search.t b/t/search.t
index 9bdd3ce..7ef86cd 100644
--- a/t/search.t
+++ b/t/search.t
@@ -3,8 +3,9 @@
use strict;
use warnings;
use Test::More;
+eval { require PublicInbox::Search; };
+plan skip_all => "Xapian missing for search" if $@;
use File::Temp qw/tempdir/;
-use PublicInbox::Search;
use Email::MIME;
use Data::Dumper;
my $tmpdir = tempdir(CLEANUP => 1);
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-08-16 20:53 7% [PATCH] skip search test if search support is missing Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).