about summary refs log tree commit homepage
path: root/t/v2reindex.t
diff options
context:
space:
mode:
Diffstat (limited to 't/v2reindex.t')
-rw-r--r--t/v2reindex.t7
1 files changed, 3 insertions, 4 deletions
diff --git a/t/v2reindex.t b/t/v2reindex.t
index cafe8648..8c49e154 100644
--- a/t/v2reindex.t
+++ b/t/v2reindex.t
@@ -1,11 +1,11 @@
-# Copyright (C) 2018-2021 all contributors <meta@public-inbox.org>
+# Copyright (C) all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict; use v5.10.1; use PublicInbox::TestCommon;
 use PublicInbox::Eml;
 use PublicInbox::ContentHash qw(content_digest);
 use File::Path qw(remove_tree);
 require_git(2.6);
-require_mods(qw(DBD::SQLite Search::Xapian));
+require_mods(qw(DBD::SQLite Xapian));
 use_ok 'PublicInbox::V2Writable';
 use_ok 'PublicInbox::OverIdx';
 my ($inboxdir, $for_destroy) = tmpdir();
@@ -549,9 +549,8 @@ is($err, '', 'no errors from --xapian-only');
 undef $for_destroy;
 SKIP: {
         skip 'only testing lsof(8) output on Linux', 1 if $^O ne 'linux';
-        my $lsof = require_cmd('lsof', 1) or skip 'no lsof in PATH', 1;
         my $rdr = { 2 => \(my $null_err) };
-        my @d = grep(m!/xap[0-9]+/!, xqx([$lsof, '-p', $$], undef, $rdr));
+        my @d = grep m!/xap[0-9]+/!, lsof_pid $$, $rdr;
         is_deeply(\@d, [], 'no deleted index files') or diag explain(\@d);
 }
 done_testing();