From: Eric Wong Date: Wed, 15 Nov 2023 05:55:49 +0000 (+0000) Subject: cindex: fix test when missing time(1) executable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af2b7781f179f4317e35d0a247c522e026cbbb3a;p=thirdparty%2Fpublic-inbox.git cindex: fix test when missing time(1) executable It was only there for development purposes because associate is slow, but it causes the test to get stuck on systems where it's not available. So remove it and just call join(1posix). Note: this is not the `time' builtin found in shells, this executable shows memory and pagefault info (and more with the `-v' switch). Unfortunately, it's not installed on many systems despite being widely-packaged. Reported-by: Konstantin Ryabitsev --- diff --git a/lib/PublicInbox/CodeSearchIdx.pm b/lib/PublicInbox/CodeSearchIdx.pm index 9ceef16cf..3a30b5e5c 100644 --- a/lib/PublicInbox/CodeSearchIdx.pm +++ b/lib/PublicInbox/CodeSearchIdx.pm @@ -890,7 +890,7 @@ sub associate { my @pending = keys %{$self->{PENDING}}; die "E: pending=@pending jobs not done\n" if @pending; progress($self, 'associating...'); - my @join = ('time', @JOIN, 'to_ibx_id', 'to_root_id'); + my @join = (@JOIN, 'to_ibx_id', 'to_root_id'); my $rd = popen_rd(\@join, $CMD_ENV, { -C => "$TMPDIR" }); my %score; while (<$rd>) { # PFX ibx_ids root_id