]> Sergey Matveev's repositories - public-inbox.git/commitdiff
tests: add "use strict" and declare v5.10.1 compatibility
authorEric Wong <e@80x24.org>
Wed, 2 Sep 2020 11:04:15 +0000 (11:04 +0000)
committerEric Wong <e@80x24.org>
Thu, 3 Sep 2020 20:11:03 +0000 (20:11 +0000)
strict.pm helped me find a typo in an upcoming recent change, so
ensure we use it since it does more good than harm.  We'll also
take the opportunity here to declare v5.10.1 compatibility level
to future-proof against Perl incompatibilities.

t/index-git-times.t
xt/eml_check_limits.t

index 8f80c8669363d1892984bfa4487e3c1f779a8135..73c99e61edb1e3445fcc9919e27d3462d1b7bb28 100644 (file)
@@ -1,5 +1,8 @@
+#!perl -w
 # Copyright (C) 2020 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::Import;
index cf780c77babaac401b72b6a38eb4925a1bc660c2..9f821946111456b736458480b6d15e309e5277d3 100644 (file)
@@ -1,6 +1,8 @@
 #!perl -w
 # Copyright (C) 2020 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;