]> Sergey Matveev's repositories - public-inbox.git/blobdiff - xt/eml_check_limits.t
update copyrights for 2021
[public-inbox.git] / xt / eml_check_limits.t
index 39de047645b378de92d4d0d706790fe857323714..536a25f159bd592b36828db19143f62d799c1f2d 100644 (file)
@@ -1,6 +1,8 @@
 #!perl -w
-# Copyright (C) 2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2020-2021 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 Test::More;
 use PublicInbox::TestCommon;
 use PublicInbox::Eml;
@@ -13,7 +15,10 @@ require_git(2.19); # for --unordered
 require_mods(qw(BSD::Resource));
 BSD::Resource->import(qw(getrusage));
 my $cls = $ENV{TEST_CLASS};
-require_mods($cls) if $cls;
+if ($cls) {
+       diag "TEST_CLASS=$cls";
+       require_mods($cls);
+}
 $cls //= 'PublicInbox::Eml';
 my $inboxdir = $ENV{GIANT_INBOX_DIR};
 plan skip_all => "GIANT_INBOX_DIR not defined for $0" unless $inboxdir;
@@ -55,7 +60,6 @@ my $cat_cb = sub {
 };
 
 my $t = timeit(1, sub {
-       $git->cat_async_begin;
        my ($blob, $type);
        while (<$fh>) {
                ($blob, $type) = split / /;