]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
cindex: fix test when missing time(1) executable
authorEric Wong <e@80x24.org>
Wed, 15 Nov 2023 05:55:49 +0000 (05:55 +0000)
committerEric Wong <e@80x24.org>
Wed, 15 Nov 2023 08:01:13 +0000 (08:01 +0000)
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 <konstantin@linuxfoundation.org>
lib/PublicInbox/CodeSearchIdx.pm

index 9ceef16cf09cb743049eedcab7b0ce6606748ddc..3a30b5e5c6825a2a32d550e8fe091d9766f22413 100644 (file)
@@ -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