From ac8fb90b7a20e790fc5e927ffd8134b6a5c2661c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 13 Jun 2019 01:53:18 +0000 Subject: t/common.perl: fix error message for git requirements And enable strict + warnings in the scope of t/common.perl, too. --- t/common.perl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/common.perl b/t/common.perl index e49a5965..5a898e32 100644 --- a/t/common.perl +++ b/t/common.perl @@ -3,6 +3,8 @@ use Fcntl qw(FD_CLOEXEC F_SETFD F_GETFD); use POSIX qw(dup2); +use strict; +use warnings; sub stream_to_string { my ($res) = @_; @@ -48,7 +50,7 @@ sub require_git ($;$) { my $cur_int = ($cur_maj << 24) | ($cur_min << 16); if ($cur_int < $req_int) { return 0 if $maybe; - plan skip_all => "git $req+ required, have $git_ver"; + plan skip_all => "git $req+ required, have $cur_maj.$cur_min"; } 1; } -- cgit v1.2.3-24-ge0c7