From: Eric Wong Date: Wed, 2 Sep 2020 11:04:15 +0000 (+0000) Subject: tests: add "use strict" and declare v5.10.1 compatibility X-Git-Tag: v1.6.0~42 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=851aa7183cf2b152d7ff187729bc896597d22fad tests: add "use strict" and declare v5.10.1 compatibility 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. --- diff --git a/t/index-git-times.t b/t/index-git-times.t index 8f80c866..73c99e61 100644 --- a/t/index-git-times.t +++ b/t/index-git-times.t @@ -1,5 +1,8 @@ +#!perl -w # Copyright (C) 2020 all contributors # License: AGPL-3.0+ +use strict; +use v5.10.1; use Test::More; use PublicInbox::TestCommon; use PublicInbox::Import; diff --git a/xt/eml_check_limits.t b/xt/eml_check_limits.t index cf780c77..9f821946 100644 --- a/xt/eml_check_limits.t +++ b/xt/eml_check_limits.t @@ -1,6 +1,8 @@ #!perl -w # Copyright (C) 2020 all contributors # License: AGPL-3.0+ +use strict; +use v5.10.1; use Test::More; use PublicInbox::TestCommon; use PublicInbox::Eml;