From patchwork Wed Oct 6 09:50:28 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: 12538903 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 13F29C433F5 for ; Wed, 6 Oct 2021 09:50:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F2C10610FB for ; Wed, 6 Oct 2021 09:50:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237947AbhJFJwf (ORCPT ); Wed, 6 Oct 2021 05:52:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237855AbhJFJwe (ORCPT ); Wed, 6 Oct 2021 05:52:34 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83C61C061749 for ; Wed, 6 Oct 2021 02:50:42 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id v18so7522498edc.11 for ; Wed, 06 Oct 2021 02:50:42 -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=fSwB1hHAPZKoUSoTx2bRQFzzYpQjUXSyF4qHGYWC5nE=; b=mKiaZKew/Ja9gAGx8xtUG91/ydEvFihgC4D3OkRgug7XCGFYUsMGv+sSFzKKTbQ6Gp oK7DRQgL5yywSMxRXZ9C93SK48ha/bPwb+mc12cTEaV5Iy0TMDlMQTw29qZ4laxLWzcw vgH0T2Qpi2nbermxpi5XlibZc7ulSOEx8Z8HNLYj2+30jdp6Mm8p4zFpNFzyZLxFxC2H stFI2vu5mRDihMwF8GOchXUMhcDjj1nAg5tNOWsXET4BJFb1YytJrrPlcXqCA0+1v9QH +3HihpZWIyRqxzHCd9F+EpsFP1t/X5zBK2U23kIZAWAwoxXewAZhRvF61tyOxPuoTC5g yBIA== 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=fSwB1hHAPZKoUSoTx2bRQFzzYpQjUXSyF4qHGYWC5nE=; b=pyGAoMqvPVX99cjFBwOENrdvTeRySlb0Y7q8hBYulvz77nju9lHo3V5RHSU8pYWt9I l1L7Ns8NlQowDAUQYQHV/iQ+kZNmdgy21npl4GYAC7DNNI1ASe0mFKWs4uOeeUK5Q/Ik fT+IZxBVRfHnNvVR/D+ifUiK5h8WCNTy0PUTTxW5j54rBKX4fXbhRAwmSpaeBEQB6J3p nFwxpVQCvqcL8AFwpYxvZflOhGzJ1De2kTjIaL4x2Cn2oUU7YRIIooVr3oYMNAw1s60D nHSu+zjAjQzmvlBkRsj9DKovk80BiJX7uZOVDOMlnEYrlQAlAlLuWFl1R7p/otFt+IiA 5FVg== X-Gm-Message-State: AOAM531ap9Y7sbK78I/IMkdNRN3ZCjEPb55ETCPA8MSJ5yBjf0y81uA3 dU1sa2lxJoubZIcActVt1WMUmMWCzxrgng== X-Google-Smtp-Source: ABdhPJzRu4rSYqwn375uEuEoBR8tlsY6xFKnjeGAS37sCan3ppJ1RnqlRHAso7fQTAQcw2EPjzEdFA== X-Received: by 2002:a50:9d49:: with SMTP id j9mr31895476edk.39.1633513839966; Wed, 06 Oct 2021 02:50:39 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 02:50:39 -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 01/10] leak tests: run various built-in tests in t00*.sh SANITIZE=leak Date: Wed, 6 Oct 2021 11:50:28 +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 various existing tests in t00*.sh that invoke git built-ins with TEST_PASSES_SANITIZE_LEAK=true 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). Signed-off-by: Ævar Arnfjörð Bjarmason --- t/t0002-gitfile.sh | 1 + t/t0003-attributes.sh | 1 + t/t0005-signals.sh | 2 ++ t/t0007-git-var.sh | 2 ++ t/t0008-ignores.sh | 1 + t/t0010-racy-git.sh | 1 + t/t0022-crlf-rename.sh | 1 + t/t0024-crlf-archive.sh | 1 + t/t0025-crlf-renormalize.sh | 1 + t/t0026-eol-config.sh | 1 + t/t0029-core-unsetenvvars.sh | 1 + t/t0055-beyond-symlinks.sh | 1 + 12 files changed, 14 insertions(+) diff --git a/t/t0002-gitfile.sh b/t/t0002-gitfile.sh index 8440e6add12..76052cb5620 100755 --- a/t/t0002-gitfile.sh +++ b/t/t0002-gitfile.sh @@ -7,6 +7,7 @@ Verify that plumbing commands work when .git is a file GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh objpath() { diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh index 1e4c672b84a..b9ed612af13 100755 --- a/t/t0003-attributes.sh +++ b/t/t0003-attributes.sh @@ -2,6 +2,7 @@ test_description=gitattributes +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh attr_check_basic () { diff --git a/t/t0005-signals.sh b/t/t0005-signals.sh index 4c214bd11c4..a5ec6a0315c 100755 --- a/t/t0005-signals.sh +++ b/t/t0005-signals.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='signals work as we expect' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh cat >expect < X-Patchwork-Id: 12538905 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 DC9C6C433EF for ; Wed, 6 Oct 2021 09:50:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C428761130 for ; Wed, 6 Oct 2021 09:50:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237981AbhJFJwg (ORCPT ); Wed, 6 Oct 2021 05:52:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbhJFJwe (ORCPT ); Wed, 6 Oct 2021 05:52:34 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9850C06174E for ; Wed, 6 Oct 2021 02:50:42 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id g8so7629026edt.7 for ; Wed, 06 Oct 2021 02:50:42 -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=I9cf2G9o32mymuXP7KSx1iAAdKmOAJEGaux/CFeZ1Pk=; b=L7sbVgEO40Uk5TaEGM06OQK1VrT+dkiOs4CBUckN1NdJyeveu6AgFlWrV/he+R76Od 4KwmoMkt35Cmp1GuWTa/dHCEymGB7M61i/Qj08YdzHfuAkWUW1HCaVWtzkPRd/Lmukqy 67lNgrJ1ram9yPWKSF/R6RnnHVPJbBHvAR7J/A/3ex1BEp4Y3A85OLVaBr86/zz409bP LOYmVch6mmUkH2F1/aHCJfjxpMgsDOAnN71TcuB5fFh2O0nq49ew005Rg3z8BaCTH3sg Ze+0rEGnHWQ993bRe8eEQe8BOeQWZGXSy4eKvUI/Oqn/lm6hj+Nh258PEWe+n8szblo0 WpSw== 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=I9cf2G9o32mymuXP7KSx1iAAdKmOAJEGaux/CFeZ1Pk=; b=btGt4LF4Z4GE7jgIoT9u7T9rp0phtwnQBC/QK4Z80zIXWD+tU34G3tSa3wXULxIX5U JV5+/s0C6WGb0QsDY+KHqp0vJpdKONNEaaYmU8pOlg1NBLtNuOs0arND0T7ms4xSefEJ L0htplmy0fSUnpHXVWVHsxUOXV1relEMAoOaVKW5meJBOKZ4ZUzc2Bh41yFZmX+sIGU1 TEkSuiZS9RvBp8HWayaWiMWuQ9ScOtW8SGQhX3UXTGSKazylhFzSzMezdLJ0hQyl55Zs i5M7Ym4tPHopwqpwQ2/33GQMOPMoy8/Keuqk6kK3xwyDV0EyxzCxAaNe/lpDRjcv9rlN lhDg== X-Gm-Message-State: AOAM533YhHg0Si/RhLyvmtG6drsEm/k07UyZ64of/uFDg1J7gO43qJkD rA72+JJFXxa+UwP1CUX1txXK7pgwzuKx8A== X-Google-Smtp-Source: ABdhPJwgRuetk32IVnlaWVRdeKMPZzTRDTTC0tmN+cJ5eSz84RzpltFU/0T24QmPUWwp4o7lwzSAMw== X-Received: by 2002:aa7:cd90:: with SMTP id x16mr34844111edv.148.1633513840801; Wed, 06 Oct 2021 02:50:40 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 02:50:40 -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 02/10] leak tests: run various "test-tool" tests in t00*.sh SANITIZE=leak Date: Wed, 6 Oct 2021 11:50:29 +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 various existing tests in t00*.sh that invoke a "test-tool" with 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). Signed-off-by: Ævar Arnfjörð Bjarmason --- t/t0013-sha1dc.sh | 2 ++ t/t0052-simple-ipc.sh | 1 + t/t0061-run-command.sh | 1 + t/t0065-strcmp-offset.sh | 1 + t/t0066-dir-iterator.sh | 1 + t/t0067-parse_pathspec_file.sh | 1 + 6 files changed, 7 insertions(+) diff --git a/t/t0013-sha1dc.sh b/t/t0013-sha1dc.sh index 419f31a8f7d..9ad76080aa4 100755 --- a/t/t0013-sha1dc.sh +++ b/t/t0013-sha1dc.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='test sha1 collision detection' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh TEST_DATA="$TEST_DIRECTORY/t0013" diff --git a/t/t0052-simple-ipc.sh b/t/t0052-simple-ipc.sh index ff98be31a51..1a36a535743 100755 --- a/t/t0052-simple-ipc.sh +++ b/t/t0052-simple-ipc.sh @@ -2,6 +2,7 @@ test_description='simple command server' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test-tool simple-ipc SUPPORTS_SIMPLE_IPC || { diff --git a/t/t0061-run-command.sh b/t/t0061-run-command.sh index 7d599675e35..ee281909bc3 100755 --- a/t/t0061-run-command.sh +++ b/t/t0061-run-command.sh @@ -5,6 +5,7 @@ test_description='Test run command' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh cat >hello-script <<-EOF diff --git a/t/t0065-strcmp-offset.sh b/t/t0065-strcmp-offset.sh index 91fa639c4a7..94e34c83ed9 100755 --- a/t/t0065-strcmp-offset.sh +++ b/t/t0065-strcmp-offset.sh @@ -2,6 +2,7 @@ test_description='Test strcmp_offset functionality' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh while read s1 s2 expect diff --git a/t/t0066-dir-iterator.sh b/t/t0066-dir-iterator.sh index 92910e4e6c1..63a1a45cd30 100755 --- a/t/t0066-dir-iterator.sh +++ b/t/t0066-dir-iterator.sh @@ -2,6 +2,7 @@ test_description='Test the dir-iterator functionality' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'setup' ' diff --git a/t/t0067-parse_pathspec_file.sh b/t/t0067-parse_pathspec_file.sh index 7bab49f361a..0188d0423a0 100755 --- a/t/t0067-parse_pathspec_file.sh +++ b/t/t0067-parse_pathspec_file.sh @@ -2,6 +2,7 @@ test_description='Test parse_pathspec_file()' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'one item from stdin' ' From patchwork Wed Oct 6 09:50:30 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: 12538907 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 58077C433FE for ; Wed, 6 Oct 2021 09:50:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4185361130 for ; Wed, 6 Oct 2021 09:50:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237999AbhJFJwk (ORCPT ); Wed, 6 Oct 2021 05:52:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237888AbhJFJwf (ORCPT ); Wed, 6 Oct 2021 05:52:35 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7D8C061753 for ; Wed, 6 Oct 2021 02:50:43 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id z20so7469430edc.13 for ; Wed, 06 Oct 2021 02:50:43 -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=xkRng6rwKUSc6u+WMn9jRbAXM+wTzlJC9eOakFrs2ys=; b=KxZwVOj3jK00ZzK+n2E9mZs6n7pUOezM51EmpM2R16CTC7wz1GbWEKS9Ke3ojGQSM7 90Fv7kC4WMMlwMvk91R5NpmKTiy7Dnfxvimizt4vFPiLSlJbyobhblHztHZE3hggrO7F JLE1M0POcpjyGIushyi0NPZLzxc2xdd6Yu+luw+0n9R6AIe755QW503v0eIrfaKFX6bd C7xWW5PRwOvDHpzFQ5nWeX9fFkXL9zUMraaQkZNxuvpytfS1yU61O6w3LikoCsc0+I/x LE+u3dLA1jcJWSVhX49LoVRac7kbS07bjY5s3KXfmT51PHoK90pMq3/lXaH8RAQtO/gs CP1Q== 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=xkRng6rwKUSc6u+WMn9jRbAXM+wTzlJC9eOakFrs2ys=; b=RZnwCXLkGe3+wYaD4Ngx7Abev7wBZW/OtkUDJtrOxquOmDW2hmO1bd3RPoRgpIUAbo nGi5eHlhS9lRjBfnMdBWiSwkaM21YJ3ZkcuJ5FZqJy8pnDyFG+utGpfivCLRZAWL+Fwj Tl9MLA/NSxhsEOEHsez9VrMzChO91prHXx8zrMhRY6uo2tqRg9fjpzJajhTnpbPOzn+S yZdHJFXEu7KNm8SJ8kiDwrj2xykCdQyo55JHDrvLNZkbOr/LjDIHGdgkE6bFSJzANkE8 Tqt39nR0DVpor9P/uMKVlbQHUaczQx/GklggCwxBFqi3hArrzxaIco0soo9XTXIegJGi vfrw== X-Gm-Message-State: AOAM532o29BPrHR60IZfl2PSyydzyxyBneZxj2PbNPevUjFv+CL8cMJD K7D88PTzTQ9Ua9XhW7bDgK1rYm1jOMSJig== X-Google-Smtp-Source: ABdhPJwBFMmw5miMQXcU9KP0ixWkiWOG7V4MqRMy2NPt1NmGZSPXs65im6gAjglaKJGmmQjKLwYrSQ== X-Received: by 2002:a05:6402:3487:: with SMTP id v7mr33560567edc.191.1633513841500; Wed, 06 Oct 2021 02:50:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 02:50:41 -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 03/10] leak tests: mark t0000-init.sh as passing with SANITIZE=leak Date: Wed, 6 Oct 2021 11:50:30 +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 "t000-init.sh" as passing when git is compiled with SANITIZE=leak. It'll now be whitelisted as running under the "GIT_TEST_PASSING_SANITIZE_LEAK=true" test mode (the "linux-leaks" CI target). Signed-off-by: Ævar Arnfjörð Bjarmason --- t/t0001-init.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/t/t0001-init.sh b/t/t0001-init.sh index df544bb321f..7603ad2f82b 100755 --- a/t/t0001-init.sh +++ b/t/t0001-init.sh @@ -2,6 +2,7 @@ test_description='git init' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh check_config () { From patchwork Wed Oct 6 09:50:31 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: 12538909 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 70D73C433F5 for ; Wed, 6 Oct 2021 09:50:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 55FD26117A for ; Wed, 6 Oct 2021 09:50:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237969AbhJFJwl (ORCPT ); Wed, 6 Oct 2021 05:52:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237951AbhJFJwf (ORCPT ); Wed, 6 Oct 2021 05:52:35 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC778C061749 for ; Wed, 6 Oct 2021 02:50:43 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id b8so7721566edk.2 for ; Wed, 06 Oct 2021 02:50:43 -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=vKQP2IqB6oZcJdawp7guNiVnFtCAT/Tv/AtohKR4Exw=; b=eCYmVtUte0jYOtS+PhFIVBk1vqcvgTQm0WAagLDN4DvX9nMFLXW6SMaBYgd3DfqSUz 72KXg1iH+49236y1/Aoae60Z2+CWd9FHae2YBZWtd+iUVznFj4PEK4do7BH4VK2AHFR2 wEWN0NV/vOQ5Y8vzSHnj/hAWjaHs5hGBpnw34M/PoXkzrHbJcZo0YjJhdBbfGXwXRBQJ kfku+yyH3sjjXcNDDKP/QCJ1jbtCZWtV4ilKS5h8mhkuAvu+kSEDE65Oi0p1ygfdlBx5 nH0P6AZqVloKumzOL1ENzjFx0DOYoWUhBQ3Fre88EnIbEhousPI0AdiK4J9OytmC3ffC Kycg== 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=vKQP2IqB6oZcJdawp7guNiVnFtCAT/Tv/AtohKR4Exw=; b=Me6BeCKT6CcWYpQ2MXhzEQy+pMg+BLwZ9OnGHfXLlzLaFLk6E5M7kYahbLltUG+VbD rKX0Hh3EzHEerELMk9/LXKWuFRMFl9E6UHAbtIbQ8H0einte4HfTw/tH6M41SZ0omv4x 3BQLnSiz4F4grvI/GSGB9xI4o8bJSNx+BEyh4bbyIupDBczr0cFiyjVqFsHtKEF9qKa7 T72KQgH1LecawPVMSvjgXWn/KgVvA4eBZqSbA/OSyxb3PT4dkhcKP8tdRlPLjCQ0OFZJ 6PDMhB6kNzosybId0ABbLD8fnm+bj8RpTl42kV35dlp1+m7p/qAiQQxTK41xblsKbGNo m/Mg== X-Gm-Message-State: AOAM530fbMHsfXSgs9B9RO5nxESZ3G0PHVSNE3NDieVeZumSiKZl0sMn smfQj/bOu1dw5JDIrmN6xqUQX/CisClTjQ== X-Google-Smtp-Source: ABdhPJyktzNK76xvNWIumbFpEOg+MQgcGiUJkIFgea8ua1GZUZWmrMPDHftMgqjE5osDfMC1cwitoQ== X-Received: by 2002:a05:6402:2682:: with SMTP id w2mr1297092edd.185.1633513842291; Wed, 06 Oct 2021 02:50:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 02:50:41 -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 04/10] leak tests: mark all ls-tree tests as passing with SANITIZE=leak Date: Wed, 6 Oct 2021 11:50:31 +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 those tests that match "*ls-tree*" 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). Signed-off-by: Ævar Arnfjörð Bjarmason --- t/t3100-ls-tree-restrict.sh | 2 ++ t/t3101-ls-tree-dirname.sh | 2 ++ t/t3102-ls-tree-wildcards.sh | 1 + t/t3103-ls-tree-misc.sh | 1 + 4 files changed, 6 insertions(+) diff --git a/t/t3100-ls-tree-restrict.sh b/t/t3100-ls-tree-restrict.sh index 18baf49a49c..436de44971e 100755 --- a/t/t3100-ls-tree-restrict.sh +++ b/t/t3100-ls-tree-restrict.sh @@ -16,6 +16,8 @@ This test runs git ls-tree with the following in a tree. The new path restriction code should do the right thing for path2 and path2/baz. Also path0/ should snow nothing. ' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success \ diff --git a/t/t3101-ls-tree-dirname.sh b/t/t3101-ls-tree-dirname.sh index 12bf31022a8..05fde642259 100755 --- a/t/t3101-ls-tree-dirname.sh +++ b/t/t3101-ls-tree-dirname.sh @@ -19,6 +19,8 @@ This test runs git ls-tree with the following in a tree. Test the handling of multiple directories which have matching file entries. Also test odd filename and missing entries handling. ' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'setup' ' diff --git a/t/t3102-ls-tree-wildcards.sh b/t/t3102-ls-tree-wildcards.sh index 1e16c6b8ea6..3942db22900 100755 --- a/t/t3102-ls-tree-wildcards.sh +++ b/t/t3102-ls-tree-wildcards.sh @@ -2,6 +2,7 @@ test_description='ls-tree with(out) globs' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'setup' ' diff --git a/t/t3103-ls-tree-misc.sh b/t/t3103-ls-tree-misc.sh index 14520913afc..d18ba1bd84b 100755 --- a/t/t3103-ls-tree-misc.sh +++ b/t/t3103-ls-tree-misc.sh @@ -7,6 +7,7 @@ Miscellaneous tests for git ls-tree. ' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'setup' ' From patchwork Wed Oct 6 09:50:32 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: 12538911 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 6C625C433EF for ; Wed, 6 Oct 2021 09:50:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 516D261166 for ; Wed, 6 Oct 2021 09:50:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238028AbhJFJwn (ORCPT ); Wed, 6 Oct 2021 05:52:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237967AbhJFJwg (ORCPT ); Wed, 6 Oct 2021 05:52:36 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A942C06174E for ; Wed, 6 Oct 2021 02:50:44 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id f4so2238719edr.8 for ; Wed, 06 Oct 2021 02:50:44 -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=nAFnyYuHf0Hrm+CLAfi4fI8eUHXctSLr7haDJJFtryY=; b=oApjQYXKa/9ZXgrpBbxftjKv0FY5ZgR8F8UZiAWFYWCq4lGLDyBoB2CSmHloqY5Xuo DEkk7/01H3VWuH1C3gi0+58Gty3t1znvqWwk9SuY2XPNnRu3vhhVDXF7UEXawP5Z16PG s+ydEk1Ccv8Evyk3uDhJTrKRp1OAvrWM928eeibzIRLnFqvU0Nv+y02CnbPGPgW8nPJt KjlUhaI3OXUZU0dWRc7RJBo8pXq2J0fDa0NfO2F4P8vbllJ4u5izyuS3kDIzbcL942oy biJBMny72RN231lsGD5ldm/tuDlB5G95TVM16F3by3hRzlC5k6BM8gS5WwqaJH0lOkSe LCOQ== 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=nAFnyYuHf0Hrm+CLAfi4fI8eUHXctSLr7haDJJFtryY=; b=X18gY70SQONGdTKmIcA1C20LAXThaMSM+1CNhZIT8aJ3J0LI4aGmWHVe68MUuQ/fin pI8ZaFp1hCjTYnml6KwQCrLvtJdELmCtUljyjDrzgVDk493zCS+U2kadc59r1R3gI4vQ A9CulWv9tzm3qpKnqhqVSSUWlbfUU/tplUhMPrTPo7MpXdQl9BIxmsO89d4cryUMrdHD NkNWmEv2yVxf3mh1p+ngzjOcno7TIy4IMoxaFpkDHVLksHiw/nKLuQxIIBtS23JmJdrv YWj8DLz/VnqW7bd6D8xCr71OtMmEFeqSQro0rAgOZYtHqNFvwxj/dqkkeobdvcVu1jkE GVvA== X-Gm-Message-State: AOAM531ozsRbyZeZVVcklnNz+o+W0U+ThOH4OKNkJL7L98YHCPOlYHc6 sHTMvlrbT7hYbbFB2Qc22xfkZZU+HEZpaw== X-Google-Smtp-Source: ABdhPJxwHKLifREZ6nR7TYvPXCk7q1iRvN99y4z/SlCy6ThK5aMvBi7DCBCetTy1K8RFNwQvq/4z4Q== X-Received: by 2002:a05:6402:510b:: with SMTP id m11mr32751857edd.258.1633513842965; Wed, 06 Oct 2021 02:50:42 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 02:50:42 -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 05/10] leak tests: mark all trace2 tests as passing with SANITIZE=leak Date: Wed, 6 Oct 2021 11:50:32 +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 all tests that match "*trace2*" 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). Signed-off-by: Ævar Arnfjörð Bjarmason --- t/t0210-trace2-normal.sh | 2 ++ t/t0211-trace2-perf.sh | 2 ++ t/t0212-trace2-event.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/t/t0210-trace2-normal.sh b/t/t0210-trace2-normal.sh index 0cf3a63b75b..37c359bd5a2 100755 --- a/t/t0210-trace2-normal.sh +++ b/t/t0210-trace2-normal.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='test trace2 facility (normal target)' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh # Turn off any inherited trace2 settings for this test. diff --git a/t/t0211-trace2-perf.sh b/t/t0211-trace2-perf.sh index 6ee8ee3b672..22d0845544e 100755 --- a/t/t0211-trace2-perf.sh +++ b/t/t0211-trace2-perf.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='test trace2 facility (perf target)' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh # Turn off any inherited trace2 settings for this test. diff --git a/t/t0212-trace2-event.sh b/t/t0212-trace2-event.sh index 1529155cf01..6d3374ff773 100755 --- a/t/t0212-trace2-event.sh +++ b/t/t0212-trace2-event.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='test trace2 facility' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh # Turn off any inherited trace2 settings for this test. From patchwork Wed Oct 6 09:50:33 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: 12538915 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 3F218C433FE for ; Wed, 6 Oct 2021 09:50:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 24B39610FB for ; Wed, 6 Oct 2021 09:50:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238041AbhJFJwr (ORCPT ); Wed, 6 Oct 2021 05:52:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238001AbhJFJwk (ORCPT ); Wed, 6 Oct 2021 05:52:40 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAC17C061760 for ; Wed, 6 Oct 2021 02:50:45 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id v18so7523100edc.11 for ; Wed, 06 Oct 2021 02:50:45 -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=dGwtl8OFt96Q0FRWHyxdUAx2la0Y0Hu6MF14NqBZskI=; b=eYSysEjiGgL7Qnh5oIvLAlrGh4TalkIdYHvRm/I1Dpv7cVJhujkmgf1OT9tVwQ+31W qNzjm4eHPtb9TLNYf6atrlyLFbEP2D1HOC3ADS+egW7wHj6nbLwixsCis/oaGqk0GUT8 ohc67Z5LYaN8im7NEoEV2vNa2a3ndS9eZ2vj2M54e0ZCu92rJT5LNuejU8twPsTrzYdi tU0ly9jJZ1NfLMSaq35dUxRHC1zYKN04MnStTm7cvolwJvHR+oTHKMQ8ep3Dto5B+ZKt SFxs2dZJ6oLiZq7eRYsa3Ba+ts7bgXbsntYZrK8OjUQPtPMmKjm9aHep+iNj2/FQ+C45 IzZA== 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=dGwtl8OFt96Q0FRWHyxdUAx2la0Y0Hu6MF14NqBZskI=; b=BWlcTl6UfdBBwVDT0xgu/BfUFJ7XdwsYsVaRgjf+ZF3dIlU8Cia8lXzoZH4a+1Dpjd 65S6Q3DifoHjGCzPf3Ti27eNAjfsn+rSa51ykIXd/IiGynEQOvDTk6OrbCtFuXeD1R48 OHjK5wmRsDHVqbIlnbIZeJVTDX0fbFVOLUBb9kKB6Re8MuUd7nJwwQc4AwLl4XSoJPfm 6NbWope07F3FoD/Itwz/ZQStNa4Z0uPtnj4PeSBmAt/s+GNNL26B77Z4ebBqUVea8WU3 2BPD/9lX2KuXofA8xEZN0KiMibWxRo2G0yhUT23ntdX4wHoGG2Ta/P+jyMBqxsp3jJ+P bsgw== X-Gm-Message-State: AOAM530Gv/5ocKPSfP1tCM3L/FCrur/mtkY77vteLudpaFCWPpUcDM7q UfoSEYH173P8kzFu2GbWZlyHTo9aPJNpUQ== X-Google-Smtp-Source: ABdhPJyWKCi/mAltDUvyhqEAgcm4MtavqjU/ceW3eCj1nQkSlxQmd8VC8Ma5UUL0CylsDP8IsD8A3w== X-Received: by 2002:a05:6402:2345:: with SMTP id r5mr23216477eda.202.1633513843798; Wed, 06 Oct 2021 02:50:43 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 02:50:43 -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 06/10] leak tests: mark all checkout-index tests as passing with SANITIZE=leak Date: Wed, 6 Oct 2021 11:50:33 +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 "*{checkout,switch}*" 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). Unfortunately almost all of those tests fail when compiled with SANITIZE=leak, these only pass because they run "checkout-index", not the main "checkout" command. Signed-off-by: Ævar Arnfjörð Bjarmason --- t/t2002-checkout-cache-u.sh | 1 + t/t2003-checkout-cache-mkdir.sh | 1 + t/t2004-checkout-cache-temp.sh | 1 + t/t2005-checkout-index-symlinks.sh | 1 + t/t2081-parallel-checkout-collisions.sh | 1 + 5 files changed, 5 insertions(+) diff --git a/t/t2002-checkout-cache-u.sh b/t/t2002-checkout-cache-u.sh index 70361c806e1..fc95cf90485 100755 --- a/t/t2002-checkout-cache-u.sh +++ b/t/t2002-checkout-cache-u.sh @@ -8,6 +8,7 @@ test_description='git checkout-index -u test. With -u flag, git checkout-index internally runs the equivalent of git update-index --refresh on the checked out entry.' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success \ diff --git a/t/t2003-checkout-cache-mkdir.sh b/t/t2003-checkout-cache-mkdir.sh index ff163cf6750..f0fd441d810 100755 --- a/t/t2003-checkout-cache-mkdir.sh +++ b/t/t2003-checkout-cache-mkdir.sh @@ -10,6 +10,7 @@ also verifies that such leading path may contain symlinks, unlike the GIT controlled paths. ' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'setup' ' diff --git a/t/t2004-checkout-cache-temp.sh b/t/t2004-checkout-cache-temp.sh index a9352b08a8b..9bb503a9757 100755 --- a/t/t2004-checkout-cache-temp.sh +++ b/t/t2004-checkout-cache-temp.sh @@ -8,6 +8,7 @@ test_description='git checkout-index --temp test. With --temp flag, git checkout-index writes to temporary merge files rather than the tracked path.' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'setup' ' diff --git a/t/t2005-checkout-index-symlinks.sh b/t/t2005-checkout-index-symlinks.sh index 9fa56104743..112682a45a1 100755 --- a/t/t2005-checkout-index-symlinks.sh +++ b/t/t2005-checkout-index-symlinks.sh @@ -8,6 +8,7 @@ test_description='git checkout-index on filesystem w/o symlinks test. This tests that git checkout-index creates a symbolic link as a plain file if core.symlinks is false.' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success \ diff --git a/t/t2081-parallel-checkout-collisions.sh b/t/t2081-parallel-checkout-collisions.sh index f6fcfc0c1e4..6acdb89d12b 100755 --- a/t/t2081-parallel-checkout-collisions.sh +++ b/t/t2081-parallel-checkout-collisions.sh @@ -11,6 +11,7 @@ The tests in this file exercise parallel checkout's collision detection code in both these mechanics. " +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh . "$TEST_DIRECTORY/lib-parallel-checkout.sh" From patchwork Wed Oct 6 09:50:34 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: 12538913 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 CC3EAC433EF for ; Wed, 6 Oct 2021 09:50:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B4E18610FB for ; Wed, 6 Oct 2021 09:50:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238031AbhJFJwo (ORCPT ); Wed, 6 Oct 2021 05:52:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237888AbhJFJwk (ORCPT ); Wed, 6 Oct 2021 05:52:40 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53B2DC061764 for ; Wed, 6 Oct 2021 02:50:46 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id z20so7469948edc.13 for ; Wed, 06 Oct 2021 02:50:46 -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=Durb7W2TNNYQpAz03K79c7drPF3f/t+Mka8I6byRVGY=; b=lYnd+Rt0rAhCbcZ62zX0V3Msi72RDrNTMt+2MXkKzU5gcz41/ThLjHq7kE2TtrY6WT GRJXyKOVvGaPAH8UpOGj9XIsgmasksSpzginVxTYhx+azIQT3ZOSapMnQPPPxkJG9VPh R4wYb3F9NFK4JgvQP6M2XbIQnCW6ofhxUvIKMORuciq2JfxelShKDm9Kx9gz23JMDQvP 863h48J3GhZJvP9EuRmAYXpUa0VoyQ5qZI/TvWFSGoEczqXLW4haQ1ZeQLCk1HsH28O6 gDFT40fJvKT+0/QUHC2/QonkGnDV/XqEi2YucYsLH4lte5sUC1PwVLKaNqpWlKNvA75Y CYiw== 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=Durb7W2TNNYQpAz03K79c7drPF3f/t+Mka8I6byRVGY=; b=MlBO2WYh+bi32YJifnMI8yPt00aP8WCVQiMwSBu2j/NrZ6PGZlXeASr6XDSMgZgS3p lXqAhFaSSDPPbzZ6CfcuAOV5SQrsSz9Bz4I7eXNJnCY75iIUV5vaVM+wekENQKfJkQis HoPR5P/nywu51sunMLteidZfQqrgWnYmwyGd/7UV4OQ3pLvcnpUj8m07d0z5sYW/6ief wkNeieu9zz4lsaUjH9xEw6Gn3FBUDkCq8wKiNUOdTtCaS0tLcjo6CUNXrIA7PFWqsGIW rMKoSJ8SohDkT3fEP3aH7G0t4R3WrbIUCNqdgS5PIGKySTSqdWW3p3v8AgjHTaD6FdxV Ov2Q== X-Gm-Message-State: AOAM530w96wnnlxjGL5JWiSyt4nPrBd4iX4LekB/ueaihQ5KxbpbfLR7 W+GuXOG1eCyHXcNPuscfZF8p5AQg+8kiRQ== X-Google-Smtp-Source: ABdhPJxniru6+t65OVnu2QSpDYMzNnHQajuk2DZa5kSNpBRdADL6sgrRdYOpL78G5fLdRUbQ47hH3Q== X-Received: by 2002:a05:6402:393:: with SMTP id o19mr7858525edv.349.1633513844703; Wed, 06 Oct 2021 02:50:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 02:50:44 -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 07/10] leak tests: mark some ls-files tests as passing with SANITIZE=leak Date: Wed, 6 Oct 2021 11:50:34 +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 "*ls-files*" 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). We still have others that match '*ls-files*" that fail under SANITIZE=leak. Signed-off-by: Ævar Arnfjörð Bjarmason --- t/t3000-ls-files-others.sh | 2 ++ t/t3002-ls-files-dashpath.sh | 2 ++ t/t3003-ls-files-exclude.sh | 2 ++ t/t3004-ls-files-basic.sh | 1 + t/t3006-ls-files-long.sh | 2 ++ t/t3008-ls-files-lazy-init-name-hash.sh | 1 + 6 files changed, 10 insertions(+) diff --git a/t/t3000-ls-files-others.sh b/t/t3000-ls-files-others.sh index 740ce56eab5..11af4552f74 100755 --- a/t/t3000-ls-files-others.sh +++ b/t/t3000-ls-files-others.sh @@ -15,6 +15,8 @@ filesystem. path3/file3 - a file in a directory path4 - an empty directory ' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'setup ' ' diff --git a/t/t3002-ls-files-dashpath.sh b/t/t3002-ls-files-dashpath.sh index 8704b04e1b4..54d22a45dfb 100755 --- a/t/t3002-ls-files-dashpath.sh +++ b/t/t3002-ls-files-dashpath.sh @@ -12,6 +12,8 @@ filesystem. -foo - a file with a funny name. -- - another file with a funny name. ' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success \ diff --git a/t/t3003-ls-files-exclude.sh b/t/t3003-ls-files-exclude.sh index c41c4f046ab..7933dff9b38 100755 --- a/t/t3003-ls-files-exclude.sh +++ b/t/t3003-ls-files-exclude.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='ls-files --exclude does not affect index files' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'create repo with file' ' diff --git a/t/t3004-ls-files-basic.sh b/t/t3004-ls-files-basic.sh index 9fd5a1f188a..a16e25c79bd 100755 --- a/t/t3004-ls-files-basic.sh +++ b/t/t3004-ls-files-basic.sh @@ -6,6 +6,7 @@ This test runs git ls-files with various unusual or malformed command-line arguments. ' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'ls-files in empty repository' ' diff --git a/t/t3006-ls-files-long.sh b/t/t3006-ls-files-long.sh index e109c3fbfb5..2aaf91ebc8c 100755 --- a/t/t3006-ls-files-long.sh +++ b/t/t3006-ls-files-long.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='overly long paths' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success setup ' diff --git a/t/t3008-ls-files-lazy-init-name-hash.sh b/t/t3008-ls-files-lazy-init-name-hash.sh index 85f37049587..51d3dffaa66 100755 --- a/t/t3008-ls-files-lazy-init-name-hash.sh +++ b/t/t3008-ls-files-lazy-init-name-hash.sh @@ -2,6 +2,7 @@ test_description='Test the lazy init name hash with various folder structures' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh if test 1 -eq $(test-tool online-cpus) From patchwork Wed Oct 6 09:50:35 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: 12538919 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 D404BC433FE for ; Wed, 6 Oct 2021 09:51:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BBD7C610FB for ; Wed, 6 Oct 2021 09:51:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238024AbhJFJwv (ORCPT ); Wed, 6 Oct 2021 05:52:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238010AbhJFJwk (ORCPT ); Wed, 6 Oct 2021 05:52:40 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5120CC061765 for ; Wed, 6 Oct 2021 02:50:47 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id v18so7523302edc.11 for ; Wed, 06 Oct 2021 02:50:47 -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=tmrZeDBkaq6Ms1ciD2oMJ0uB+9heOiOGoAWIW1z0jcc=; b=dHT+/9yvXqz2ClfNllLHhEm1gjmiJwPHlO6vLKdJ1ynXFqjN45IymfqEIeQ95kwKgs fEhSMpZgC99s7657QNLGh8zOPPc5NljB8Y8IrTk8FWZF4O+rHIru4dMWvw9g3nU3lvt5 A45erTCnRyzBlU1DQRd7f5YR2atP5Xuy7mvQ9wZ2AOr1rz08zPoyU3XNN5avdLoISniw TRTWH4tymVYCTRoh0WEh89/Rb4594PLI0TMovGndH+JUYqcZEPJoHRJEl0bazBDTNmpU TWaq/vB0sQ9rPPvar3g/qWVydKPUrEOjB708ZUtSSk2x4MzAc7r2lZAYTIElA6DnOKq1 HZMA== 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=tmrZeDBkaq6Ms1ciD2oMJ0uB+9heOiOGoAWIW1z0jcc=; b=BICoO7bCE6CmRJIQwjl29q/CcYlINxeVqp+jXwnSjHlubgNcjRDS5kW8dSlnOgn4UM +Odp1L4UhcE7B7FWPYsN40CZ0SiYjckYwcA6k7I8cpIxWbB9QElvIuic5qrP6lA5b3f3 mEgbNH1sTM8qk6FsiHKNK6yTrVS/1wFoeQrncGVt58C0gRoJhZ6Z/o19fW7hvJIEVu3p YSWkeNq6cMqb93w2mo3WU4ldHCpt2BDNeNVI3f+OuWDgkbomhxqgvyQYssOoevGUXi6c gf8E3OnAyL7wwh5LNOGZehH8Y4cyvK+eERxYwyu+t/bnvzQ2wcdocnVc8DmAE34oUMOD fdtA== X-Gm-Message-State: AOAM5325JHNZtXi9ptihX5LrwJd4+zvBNQT00fLLgQAbWrBdR7MBUMEa XoVsPvRR7rbZSW+lvKq5jMT10xOF5CitoA== X-Google-Smtp-Source: ABdhPJwZ71ZcEPCMIF6gikIexosTc0rWiPpSBsWWr3jnUDsKEgNZ5jtH6jUg58KEroPajfZfF+KmIw== X-Received: by 2002:a05:6402:2790:: with SMTP id b16mr32413024ede.3.1633513845435; Wed, 06 Oct 2021 02:50:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 02:50:44 -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 08/10] leak tests: mark some read-tree tests as passing with SANITIZE=leak Date: Wed, 6 Oct 2021 11:50:35 +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 "*read-tree*" 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). We still have around half the tests that match "*read-tree*" failing, but let's whitelist those that don't. Signed-off-by: Ævar Arnfjörð Bjarmason --- t/t1000-read-tree-m-3way.sh | 2 ++ t/t1003-read-tree-prefix.sh | 1 + t/t1009-read-tree-new-index.sh | 1 + t/t1012-read-tree-df.sh | 1 + t/t1014-read-tree-confusing.sh | 2 ++ 5 files changed, 7 insertions(+) diff --git a/t/t1000-read-tree-m-3way.sh b/t/t1000-read-tree-m-3way.sh index 013c5a7bc32..0e8c0dfbbee 100755 --- a/t/t1000-read-tree-m-3way.sh +++ b/t/t1000-read-tree-m-3way.sh @@ -71,6 +71,8 @@ In addition: DF: a special case, where A makes a directory and B makes a file. ' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh . "$TEST_DIRECTORY"/lib-read-tree.sh . "$TEST_DIRECTORY"/lib-read-tree-m-3way.sh diff --git a/t/t1003-read-tree-prefix.sh b/t/t1003-read-tree-prefix.sh index b6111cd150f..e0db2066f31 100755 --- a/t/t1003-read-tree-prefix.sh +++ b/t/t1003-read-tree-prefix.sh @@ -6,6 +6,7 @@ test_description='git read-tree --prefix test. ' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success setup ' diff --git a/t/t1009-read-tree-new-index.sh b/t/t1009-read-tree-new-index.sh index 2935f68f8d2..fc179ac5dd6 100755 --- a/t/t1009-read-tree-new-index.sh +++ b/t/t1009-read-tree-new-index.sh @@ -5,6 +5,7 @@ test_description='test read-tree into a fresh index file' GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success setup ' diff --git a/t/t1012-read-tree-df.sh b/t/t1012-read-tree-df.sh index 57f0770df14..cde93d22cde 100755 --- a/t/t1012-read-tree-df.sh +++ b/t/t1012-read-tree-df.sh @@ -2,6 +2,7 @@ test_description='read-tree D/F conflict corner cases' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh . "$TEST_DIRECTORY"/lib-read-tree.sh diff --git a/t/t1014-read-tree-confusing.sh b/t/t1014-read-tree-confusing.sh index da3376b3bb2..8ea8d36818b 100755 --- a/t/t1014-read-tree-confusing.sh +++ b/t/t1014-read-tree-confusing.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='check that read-tree rejects confusing paths' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'create base tree' ' From patchwork Wed Oct 6 09:50:36 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: 12538917 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 A5E83C433EF for ; Wed, 6 Oct 2021 09:50:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8CA5B61166 for ; Wed, 6 Oct 2021 09:50:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238014AbhJFJwu (ORCPT ); Wed, 6 Oct 2021 05:52:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238005AbhJFJwk (ORCPT ); Wed, 6 Oct 2021 05:52:40 -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 148CAC061766 for ; Wed, 6 Oct 2021 02:50:48 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id dj4so7644793edb.5 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=4mCLllGZFVkljRSaqyUpFIFUrGKWN99Brgoo0UtMfgo=; b=ONnCM+gfvdl5Ip0lwmq3mqzMKtlhh2+D4TRPznwmH3pZoWirIkscqD2A+luGbdreNG PBQC1ef2ikzKeJStTpqtpRDvgHXtZx6Rai67lOtc0tcO1CQJJBr2iP7ZTYgrLIWEm2I2 xXZ2l//gxGt7Y+yFoa77LnbFwGCsA+phD8hHrso1AP+N4q3PITlD94b7YaGiuW16eGsW QJUuzRyslmAXKurNhZZOmbfg7p4Sjj7NNQifZFLzPQ1mym3k7ouYjqPOgtdGJHczxW7C YqD5Bkb3sqy44SilvNL9mo6nwfu5dDT51rl4qFM0jzUUKsHxrjyCzy54ZTL7IquSv5lf o4ow== 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=4mCLllGZFVkljRSaqyUpFIFUrGKWN99Brgoo0UtMfgo=; b=x+hznvdSp8wjfagWETPs2UKcqO9nnGmMdTTJGEb1jX3V7klqG/1IFa4NY6gv42EuST O1oM//iVnfAN+qqygO+IY528uo/hVMaQZjrA0iJNgBt3FsFZfzdEsM0OGgEwpVSDDEyO Euv0o7Wwdk/dsxqYqzPy6gkGTRl89VJXZ8YWxYtMuDDTT6nWy0rp7yXCn5w9xhrdM1mf LziRXG0tGWQ6uPzUQEGm9J0EyS0Fxz87zV4HyFIIaCq2VAq12tVkwO/YU3sFs0Df2UES ixgojj0Miia1pKcMss5UoGYsti1mbfyr6KSu6zFR5lQGYLeMNbLkbLmdBIfD4zH4nKVp WbEw== X-Gm-Message-State: AOAM531NNfB/FgYbgvwURzA3e64MWpb93INa4CzTQW28sVIjP0CgmFpg uWZnQM9aGgpgcv7Dao/kyxdBx75QRIneSA== X-Google-Smtp-Source: ABdhPJx40vR4PodW3cUkcQrJk018he4J8ZQjPg/Ad4hM78Geiot8KB89D3+ly55MOyLp1gd1egU64Q== X-Received: by 2002:a17:907:77c8:: with SMTP id kz8mr26005931ejc.406.1633513846422; Wed, 06 Oct 2021 02:50:46 -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.45 (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 09/10] leak tests: mark various "generic" tests as passing with SANITIZE=leak Date: Wed, 6 Oct 2021 11:50:36 +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 various "generic" tests as passing when git is compiled with SANITIZE=leak. These tests were subjectively picked from the lists of passing tests since they're all small, and test some generic feature such as wildmatch(), commonly used environment variables, ident parsing etc. Signed-off-by: Ævar Arnfjörð Bjarmason --- t/t1430-bad-ref-name.sh | 1 + t/t1504-ceiling-dirs.sh | 2 ++ t/t1510-repo-setup.sh | 1 + t/t2050-git-dir-relative.sh | 1 + t/t2300-cd-to-toplevel.sh | 1 + t/t3070-wildmatch.sh | 1 + t/t3205-branch-color.sh | 1 + t/t3211-peel-ref.sh | 1 + t/t3300-funny-names.sh | 1 + t/t3902-quoted.sh | 1 + t/t4026-color.sh | 2 ++ t/t5580-unc-paths.sh | 1 + t/t5615-alternate-env.sh | 2 ++ t/t7518-ident-corner-cases.sh | 2 ++ 14 files changed, 18 insertions(+) diff --git a/t/t1430-bad-ref-name.sh b/t/t1430-bad-ref-name.sh index b1839e08771..90b7b350a53 100755 --- a/t/t1430-bad-ref-name.sh +++ b/t/t1430-bad-ref-name.sh @@ -4,6 +4,7 @@ test_description='Test handling of ref names that check-ref-format rejects' GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success setup ' diff --git a/t/t1504-ceiling-dirs.sh b/t/t1504-ceiling-dirs.sh index 3d51615e42d..0fafcf9dde3 100755 --- a/t/t1504-ceiling-dirs.sh +++ b/t/t1504-ceiling-dirs.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='test GIT_CEILING_DIRECTORIES' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_prefix() { diff --git a/t/t1510-repo-setup.sh b/t/t1510-repo-setup.sh index bbfe05b8e4a..591505a39c0 100755 --- a/t/t1510-repo-setup.sh +++ b/t/t1510-repo-setup.sh @@ -43,6 +43,7 @@ A few rules for repo setup: # This test heavily relies on the standard error of nested function calls. test_untraceable=UnfortunatelyYes +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh here=$(pwd) diff --git a/t/t2050-git-dir-relative.sh b/t/t2050-git-dir-relative.sh index 21f4659a9d1..1f193cde965 100755 --- a/t/t2050-git-dir-relative.sh +++ b/t/t2050-git-dir-relative.sh @@ -12,6 +12,7 @@ into the subdir while keeping the worktree location, and tries commits from the top and the subdir, checking that the commit-hook still gets called.' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh COMMIT_FILE="$(pwd)/output" diff --git a/t/t2300-cd-to-toplevel.sh b/t/t2300-cd-to-toplevel.sh index c8de6d8a190..b40eeb263fe 100755 --- a/t/t2300-cd-to-toplevel.sh +++ b/t/t2300-cd-to-toplevel.sh @@ -2,6 +2,7 @@ test_description='cd_to_toplevel' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh EXEC_PATH="$(git --exec-path)" diff --git a/t/t3070-wildmatch.sh b/t/t3070-wildmatch.sh index 56ea4bda133..72d5b014d82 100755 --- a/t/t3070-wildmatch.sh +++ b/t/t3070-wildmatch.sh @@ -2,6 +2,7 @@ test_description='wildmatch tests' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh # Disable expensive chain-lint tests; all of the tests in this script diff --git a/t/t3205-branch-color.sh b/t/t3205-branch-color.sh index 08bd906173b..6a521c1a3e5 100755 --- a/t/t3205-branch-color.sh +++ b/t/t3205-branch-color.sh @@ -4,6 +4,7 @@ test_description='basic branch output coloring' GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'set up some sample branches' ' diff --git a/t/t3211-peel-ref.sh b/t/t3211-peel-ref.sh index 37b9d26f4b6..9cbc34fc583 100755 --- a/t/t3211-peel-ref.sh +++ b/t/t3211-peel-ref.sh @@ -4,6 +4,7 @@ test_description='tests for the peel_ref optimization of packed-refs' GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'create annotated tag in refs/tags' ' diff --git a/t/t3300-funny-names.sh b/t/t3300-funny-names.sh index f5bf16abcd8..d3ac826283e 100755 --- a/t/t3300-funny-names.sh +++ b/t/t3300-funny-names.sh @@ -9,6 +9,7 @@ This test tries pathnames with funny characters in the working tree, index, and tree objects. ' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh HT=' ' diff --git a/t/t3902-quoted.sh b/t/t3902-quoted.sh index f528008c363..72a5a565e97 100755 --- a/t/t3902-quoted.sh +++ b/t/t3902-quoted.sh @@ -5,6 +5,7 @@ test_description='quoted output' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh FN='濱野' diff --git a/t/t4026-color.sh b/t/t4026-color.sh index c0b642c1ab0..cc73161b466 100755 --- a/t/t4026-color.sh +++ b/t/t4026-color.sh @@ -4,6 +4,8 @@ # test_description='Test diff/status color escape codes' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh ESC=$(printf '\033') diff --git a/t/t5580-unc-paths.sh b/t/t5580-unc-paths.sh index cd803ae8bf1..cd7604fff93 100755 --- a/t/t5580-unc-paths.sh +++ b/t/t5580-unc-paths.sh @@ -4,6 +4,7 @@ test_description='various Windows-only path tests' GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh if test_have_prereq CYGWIN diff --git a/t/t5615-alternate-env.sh b/t/t5615-alternate-env.sh index b4905b822c0..83513e46a35 100755 --- a/t/t5615-alternate-env.sh +++ b/t/t5615-alternate-env.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='handling of alternates in environment variables' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh check_obj () { diff --git a/t/t7518-ident-corner-cases.sh b/t/t7518-ident-corner-cases.sh index 905957bd0a1..fffdb6ff2e7 100755 --- a/t/t7518-ident-corner-cases.sh +++ b/t/t7518-ident-corner-cases.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='corner cases in ident strings' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh # confirm that we do not segfault _and_ that we do not say "(null)", as 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 <