From 05a03a70e1891e47b48b0af1036a2a97e6af08b2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 10 Jun 2024 11:34:26 +0000 Subject: [PATCH] xt/perf-threading: modernize + remove Xapian dependency Threading hasn't required Xapian (only SQLite) for a while now; but I'm revisiting this test for another minor optimization. --- xt/perf-threading.t | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/xt/perf-threading.t b/xt/perf-threading.t index 57e9db9ba..24c1a873e 100644 --- a/xt/perf-threading.t +++ b/xt/perf-threading.t @@ -1,18 +1,16 @@ -# Copyright (C) 2016-2021 all contributors +#!perl -w +# Copyright (C) all contributors # License: AGPL-3.0+ # # real-world testing of search threading -use strict; -use warnings; +use v5.12; use Test::More; use Benchmark qw(:all); use PublicInbox::Inbox; my $inboxdir = $ENV{GIANT_INBOX_DIR} // $ENV{GIANT_PI_DIR}; plan skip_all => "GIANT_INBOX_DIR not defined for $0" unless $inboxdir; my $ibx = PublicInbox::Inbox->new({ inboxdir => $inboxdir }); -eval { require PublicInbox::Search }; -my $srch = $ibx->search; -plan skip_all => "$inboxdir not configured for search $0 $@" unless $srch; +$ibx->over or plan skip_all => "$inboxdir not indexed for $0 $@"; require PublicInbox::View; -- 2.47.2