From patchwork Wed Oct 6 09:50:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= X-Patchwork-Id: 12538921 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA274C433EF for ; Wed, 6 Oct 2021 09:51:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A2F65610FC for ; Wed, 6 Oct 2021 09:51:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238035AbhJFJwy (ORCPT ); Wed, 6 Oct 2021 05:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238015AbhJFJwl (ORCPT ); Wed, 6 Oct 2021 05:52:41 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2D24C061768 for ; Wed, 6 Oct 2021 02:50:48 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id p13so7845756edw.0 for ; Wed, 06 Oct 2021 02:50:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bukQqy+ILKSTk9hWDrvHeiYchkFcsRgJQjP9E+O5dx0=; b=UiCWcjez3odxddeYRO5WHzouSKLmHWbABTiv+CdjASu4bx1VnZQq0C9oOVAZ4gqAhg gHmDkaFlRn2Nte5mqf9itz3weoqdh+epGC084H4a3IHuqHfelrNXVHSelHLvH8J5M5e3 A/VV/MFWK1XC7voPO3t2dFBsx3cntjp3DPobkFTY39KkgRAjLbw1kHTtvk70wxsoIfQz bX0EYmt3Q8gL7ocT7UoDiG8GnVkzqUuRlh+/s+PRizDai7ELwmzEbMEgh+But6WZ2HPb 5RWhMzq/amHMrixg7XTwG7T1g1yhC+4SyWZf8C1I8Mre5k0G5r94qqAolUh7rzzCmFG+ QZZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bukQqy+ILKSTk9hWDrvHeiYchkFcsRgJQjP9E+O5dx0=; b=PYFzRS69hqLVRefPONIR6WttdSFhGeszYaCsw18d3ysu0KmaBIYR2mF+MEFbUxp9Iq 6k39u3+1CfHpRJNPFCKVIdVv/1HTwb98w9BhkhJLdgfVBBYOlpnRhPl3wLY3dQeV+kjU 0nNfD4xQkutW1MwijHCrOVCgLuNcp72HWn20cwt7iyJ2WjYj2hMQNyD7Hf/yzSQYITDQ g2GkMQvPEE8mXbPccNvzVhdl3Z9X100R8ve9M0xkjESJmWQECJT+JKoLkLeWPQlh/ntc VP+CgYDwhYCZnQ/b+TJpp+ocYBhEOtJv11984q108rz0s2Yy5wpLilOWewNigK2jP4t7 22Sw== X-Gm-Message-State: AOAM531cLPghAflVmPvGEd3/QY4Hu4guytamvngiqc5+sBHAG2/DECze 0yQXEvlosJMnnnvJW51ge8XZDdFvZGm03g== X-Google-Smtp-Source: ABdhPJw/eLQe2St3/Bwx0CVGjDmpmIuDT6ZHymtxjT/5ZEpKIJW3DhvpU2O+Gc79p3VkHtvMLnd0jQ== X-Received: by 2002:a17:906:d215:: with SMTP id w21mr30901450ejz.448.1633513847142; Wed, 06 Oct 2021 02:50:47 -0700 (PDT) Received: from vm.nix.is (vm.nix.is. [2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id i2sm9886243edu.48.2021.10.06.02.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 02:50:46 -0700 (PDT) From: =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= To: git@vger.kernel.org Cc: Junio C Hamano , Elijah Newren , =?utf-8?q?Martin_=C3=85gren?= , Andrzej Hunt , Jeff King , =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= Subject: [PATCH 10/10] leak tests: mark some misc tests as passing with SANITIZE=leak Date: Wed, 6 Oct 2021 11:50:37 +0200 Message-Id: X-Mailer: git-send-email 2.33.0.1441.gbbcdb4c3c66 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Mark some tests that match "*{mktree,commit,diff,grep,rm,merge,hunk}*" as passing when git is compiled with SANITIZE=leak. They'll now be whitelisted as running under the "GIT_TEST_PASSING_SANITIZE_LEAK=true" test mode (the "linux-leaks" CI target). These were picked because we still have a lot of failures in adjacent areas, and we didn't have much if any coverage of e.g. grep and diff before this change, we could still whitelist a lot more tests, but let's stop for now. Signed-off-by: Ævar Arnfjörð Bjarmason --- t/t1010-mktree.sh | 1 + t/t1100-commit-tree-options.sh | 1 + t/t3601-rm-pathspec-file.sh | 1 + t/t4002-diff-basic.sh | 2 ++ t/t4016-diff-quote.sh | 1 + t/t4019-diff-wserror.sh | 1 + t/t4025-hunk-header.sh | 1 + t/t4300-merge-tree.sh | 2 ++ t/t7812-grep-icase-non-ascii.sh | 1 + t/t7813-grep-icase-iso.sh | 1 + t/t7816-grep-binary-pattern.sh | 1 + 11 files changed, 13 insertions(+) diff --git a/t/t1010-mktree.sh b/t/t1010-mktree.sh index b946f876864..48bfad07abc 100755 --- a/t/t1010-mktree.sh +++ b/t/t1010-mktree.sh @@ -2,6 +2,7 @@ test_description='git mktree' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success setup ' diff --git a/t/t1100-commit-tree-options.sh b/t/t1100-commit-tree-options.sh index ae66ba5babf..0f37a43fd3c 100755 --- a/t/t1100-commit-tree-options.sh +++ b/t/t1100-commit-tree-options.sh @@ -12,6 +12,7 @@ Also make sure that command line parser understands the normal "flags first and then non flag arguments" command line. ' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh cat >expected <