From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A3A371F567 for ; Sun, 1 Oct 2023 02:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1696128204; bh=UBh/qawYewvFBUIKU47gl5LuSlZh6d237TLJBcFEHAY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=40/jnMMrsve3tLPkTUXWxxzeBIv83Qv45C1/HpCTIQjJfSW6eTJEE/s12ryvu+fYt Cnsx+05y6odIRiOAM8L+eF0BL0z46mac7hR2UuiX1sziLXmF4YGXbkjYzFUKyUbE2j +oBemJMkl2TkRGegTNxrIi8M2R+3b8/7u0bbcgMY= From: Eric Wong To: spew@80x24.org Subject: [PATCH 05/16] t/git: show git_version in diag output Date: Sun, 1 Oct 2023 02:43:12 +0000 Message-ID: <20231001024323.1960491-5-e@80x24.org> In-Reply-To: <20231001024323.1960491-1-e@80x24.org> References: <20231001024323.1960491-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This is useful to ensure we're testing properly with git <= 2.35 to ensure we don't break --batch-check support for those users. --- t/git.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/git.t b/t/git.t index bde6d35b..b7df6186 100644 --- a/t/git.t +++ b/t/git.t @@ -1,8 +1,7 @@ #!perl -w # Copyright (C) all contributors # License: AGPL-3.0+ -use strict; -use v5.10.1; +use v5.12; use PublicInbox::TestCommon; my ($dir, $for_destroy) = tmpdir(); use PublicInbox::Import; @@ -205,4 +204,5 @@ is(git_quote($s = "hello\nworld"), '"hello\\nworld"', 'quoted LF'); is(git_quote($s = "hello\x06world"), '"hello\\006world"', 'quoted \\x06'); is(git_unquote($s = '"hello\\006world"'), "hello\x06world", 'unquoted \\x06'); -done_testing(); +diag 'git_version='.sprintf('%vd', PublicInbox::Git::git_version()); +done_testing;