From patchwork Tue Oct 12 13:56: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: 12552771 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 84D95C433F5 for ; Tue, 12 Oct 2021 13:56:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6627961040 for ; Tue, 12 Oct 2021 13:56:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237083AbhJLN6y (ORCPT ); Tue, 12 Oct 2021 09:58:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236903AbhJLN6x (ORCPT ); Tue, 12 Oct 2021 09:58:53 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A47F3C061570 for ; Tue, 12 Oct 2021 06:56:51 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id m22so67373239wrb.0 for ; Tue, 12 Oct 2021 06:56:51 -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=3vbQXfw+oKY/Tx2WyRJ+xvxT1HHv2L4z13fimtbN/4g=; b=gz7B8MtDQkSdEjjVXUxy+Ux1Sqm3UJc8hXJPNIOeHleehKvolxZGC+0RHAGE1jZNuY /fOYisilBLLlyyZ24Lxjfq+y0NBPdOMeZaLECkQ6qjPu0v2LfeyBPLkxXtY6NHfFM6xj nK7VXRzN1SAn+xVqbo+fhU0OzQT3RlwydIILxnfC6VdYmHz7sm75uDrVtlSiFt3qFBWk RxGCSuCIw7bUk5+frOQpjJ2l3ZoL6X6im+FGICp/bkrtvRvT1FLuTKySjhSHDXJiesRg suSaUvBLILxyz5hQ2OLc3fkhlMTEB9V2Q42mRNB9a6wtqHFsyldbooWWpxf0rDporIHD Zktg== 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=3vbQXfw+oKY/Tx2WyRJ+xvxT1HHv2L4z13fimtbN/4g=; b=dS2kaWaFcTJ2pYtjJX+O4LhlvvDDoe02YQ+HZsF5S8A2VtmfIv+Jbtv224FLHgZR4c 5a9YE1iCvKVz4GcQuXpkCtKjsOvYpDxaDnroKKp1atMGghcuMOGppt16TFi8QqRS07r7 QsR9+rBlaEss4OebVBLuZZe4eJhy/cFEfptRoxZiIPB+ZXUAxpU2crakmJwNMC+/+I2W SRwBwjMdQHRW+V2J92kb3zpydR6hFhDTkYjEN3QlWmtSVocOQiR4by3Ix21PbzJPk+MV OrHsOWAZ1SzRy6HqXIu8KCd2Dito6m2XprajU9R14nVN01FusNM+MNhXyOEIKJayAMEG T7Fg== X-Gm-Message-State: AOAM530oASyIzJ0gisEq3afFImpc84xpTdO+bfj+MpiKu7OR5U8UTE0P EWmqB/nTfjqO5Hep8MgpvOt0KHZLnxy4Sw== X-Google-Smtp-Source: ABdhPJzHfOvsotpAUJ/1W9DxEN+vvOp+HPld7DrRFnMaexXY56juIybXlc8OE5XhGz8+BajEPOMK/w== X-Received: by 2002:a1c:2c2:: with SMTP id 185mr5821716wmc.85.1634047009469; Tue, 12 Oct 2021 06:56:49 -0700 (PDT) Received: from vm.nix.is (vm.nix.is. [2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id z6sm4031950wmp.1.2021.10.12.06.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 06:56:48 -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 v2 1/9] leak tests: run various built-in tests in t00*.sh SANITIZE=leak Date: Tue, 12 Oct 2021 15:56:37 +0200 Message-Id: X-Mailer: git-send-email 2.33.0.1567.g7b23ce7ed9e 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 listed 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 + 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 + 13 files changed, 15 insertions(+) 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 () { 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: 12552773 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 4DB9CC433EF for ; Tue, 12 Oct 2021 13:56:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 351666101D for ; Tue, 12 Oct 2021 13:56:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237089AbhJLN6z (ORCPT ); Tue, 12 Oct 2021 09:58:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237062AbhJLN6x (ORCPT ); Tue, 12 Oct 2021 09:58:53 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16343C06161C for ; Tue, 12 Oct 2021 06:56:52 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id k7so67100664wrd.13 for ; Tue, 12 Oct 2021 06:56:52 -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=GXBqiuym9buQmREG1jS8xzWNN7L+71rhz4xiWHkWUxY=; b=fxKkXHVsWgI8xKeTBU4h1ju9D4Xue59XbSDoeEFvx++iOl91J66STKGJ+DWEu6R46o chotphzqGK6CjpDRuunFlBZsuHn5fqUYWZMU8sAhStRt9TIkb5ZFURnXVhnyfgJ6MxkT rfDjfrnxuyno8hhTmSPY8rmbfWLLb63HEpoeqFXnralSHq0Yy9JZMTPjUBGoo/xCxK3L fAluAY1OnDqsQiC/zp+rL6x6D2/xgP4qLSP3Vrq7AcGprx2CM1F6YeYVj7MdV5zqdPNI bgRt3TYoFJp5sHY7jY2EjaYxwSTf57VrU/zZZrCyfT5hDYeJ6yrLoGGvWFPa4r6GjTi8 IaMA== 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=GXBqiuym9buQmREG1jS8xzWNN7L+71rhz4xiWHkWUxY=; b=4fxRioWWSjb/TV8kHddu4tAkRCCx0nHUxDjD/0GSVYQshGWWMrMvsoyyQZbZptq3bB Z6OHHC8wNkiIxUkr2ssypwATF2/mvO4iChBzWvejyCcmoOlJUsmmPlgdV7CwEAu1IZJ2 +1w6p4osf/V3Y4R+nRUxxY4uGtE+CxKfvNFzPfsU6uRhVv7qix+aq18FG0qBZ1nmQoSs cOLqUsrr2g6nkKqbreOygch0hvk4DWPshIWo1V5HOwhtpvJTt0tCMl4c5gpVmZyMudVW zJ8Bm2KqA9CQZb3apol/pHA7OOO/WvvMKu5BHI6qReFeNXinNGshRBMYZ/WT4JV+8/Tp DHYQ== X-Gm-Message-State: AOAM530tG+RRmR+ZG7YiuTwT078i2bPFdg59hKbLyHMWJUIt7qLZwNXv Fcg5s1Yc8WnLo/bJMTQKt+M7YWabZE0obA== X-Google-Smtp-Source: ABdhPJx87Hy8G5e+sMBPkqDHVaKFL0iOO+i/0UG4CZRdRs81iI/7nqTOgj3KThBJ8EAi/pNo88UVhg== X-Received: by 2002:a05:600c:4fd1:: with SMTP id o17mr5898816wmq.110.1634047010229; Tue, 12 Oct 2021 06:56:50 -0700 (PDT) Received: from vm.nix.is (vm.nix.is. [2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id z6sm4031950wmp.1.2021.10.12.06.56.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 06:56:49 -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 v2 2/9] leak tests: run various "test-tool" tests in t00*.sh SANITIZE=leak Date: Tue, 12 Oct 2021 15:56:38 +0200 Message-Id: X-Mailer: git-send-email 2.33.0.1567.g7b23ce7ed9e 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 listed 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 Tue Oct 12 13:56:39 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: 12552775 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 61CBFC433FE for ; Tue, 12 Oct 2021 13:56:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4A2F66101D for ; Tue, 12 Oct 2021 13:56:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237090AbhJLN66 (ORCPT ); Tue, 12 Oct 2021 09:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237085AbhJLN6y (ORCPT ); Tue, 12 Oct 2021 09:58:54 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A519FC061570 for ; Tue, 12 Oct 2021 06:56:52 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id u18so67429119wrg.5 for ; Tue, 12 Oct 2021 06:56:52 -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=CQyPgn78SikiC/c9x47B4KZq+HUf4ufTdz7P4wDh3Pk=; b=VqlkL1gpsPYXNgAq+7xnfSP/peTmVY4igjxsihIIzaL/JjjwnxRPV//+GASvKX+2va jSwD3HEtKVptyIuxz251Q+zBh4K4ChLusTyXGTGPk2L2M+XdWuTAG739F3Ut7x7k9aaD btE16+gGK/pv29Ehj4cLQ9xW/6mYw41WQhct/Gww/3zLvkFuzp5aXiIyoM5YWDp6pEE0 SseyBY8cuaJuqvLbILGM/K+bwrFHCLmZmJbWueaOOdcCuAqA+zNz8VKpzDiT+cJhItMc BNJxa+mJaduggxBbijy482ra17bNPCX9qk/96Y6KH/mtSDCkGCjxwOSXvzrvZOiJcGi7 5KEQ== 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=CQyPgn78SikiC/c9x47B4KZq+HUf4ufTdz7P4wDh3Pk=; b=KO4ynFE1KdIF1ha/C08BmgUHFaqWDAx5E3EkhiW1cUSt2B9I7MsduHEsYZOSxcCD2X 1QGA6ZmnipG79egCbod0oMkX1yG3JWlp9Ic89MpxcZjhfD4YiwCDM91vNT2ilr3AatgP bOD/AMpvvPyiTEPIXwthl0Xj1pi5N9iqWz66E7f80cgLDSxr3wGM+qck80/1wH8/7fGI 7WnY1cDaOkY0yUpcrpxQMAamlUfM5Sk6PxXzYAEnxC+PJ3PVjngv+MIANdEuB0/wWxQk aSRB0b3UC71C7e5+FcDfCm5ZlRgQMh/G5iLis72S8sXncO8wdGamJaYhJ2MhioGC487m iVDQ== X-Gm-Message-State: AOAM533AzvNsObVbQwh//au7bbAk1BeYdSDsVM3LURxy929q9hk93UgO C/+blp01bBGlQXYYXDf+pYtzOpx38bTTRQ== X-Google-Smtp-Source: ABdhPJwPMUYzZoIa42aLQwEgLVphmp/HMh5PtQG6Poo8wqud2yjrpeIBCIY9iWhliyy08DnTyE9JhQ== X-Received: by 2002:adf:8b06:: with SMTP id n6mr32368935wra.5.1634047011020; Tue, 12 Oct 2021 06:56:51 -0700 (PDT) Received: from vm.nix.is (vm.nix.is. [2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id z6sm4031950wmp.1.2021.10.12.06.56.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 06:56:50 -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 v2 3/9] leak tests: mark all ls-tree tests as passing with SANITIZE=leak Date: Tue, 12 Oct 2021 15:56:39 +0200 Message-Id: X-Mailer: git-send-email 2.33.0.1567.g7b23ce7ed9e 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 listed 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 Tue Oct 12 13:56:40 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: 12552777 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 51183C433EF for ; Tue, 12 Oct 2021 13:56:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2DBB5610C7 for ; Tue, 12 Oct 2021 13:56:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237093AbhJLN67 (ORCPT ); Tue, 12 Oct 2021 09:58:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237088AbhJLN6z (ORCPT ); Tue, 12 Oct 2021 09:58:55 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51D38C06161C for ; Tue, 12 Oct 2021 06:56:53 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id k7so67101079wrd.13 for ; Tue, 12 Oct 2021 06:56:53 -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=n3xsfOYMyvjbcV00ySLzy9kgAOyjABhXLJUa+2Cip/E=; b=IX/RVT/fNOg7saKOMqpmuxO/sUSOSAmoUvTNUv8ZGFZVp4s4vTUI0LGHJWbPxDr3he KjVeErhiuG6nC2R4KmgtOjLJUnqr3FucWF0iaqMM/DKA5GouWbwn2liEOKkMyvkQ9cm+ sTy6pLPnEYANx15MkV4pIBDCLEbs7nazlujynLz0bevfBQEjiSP/WGD3bIbm6XW/AGMa iotJPCkoW5eukl2EaKphyRBvQ9N/pBWVEru6SbKutZfAZf8VsYQJpYg0EwMQDs5TsMck iZq31MReudMLg2qiM60TbNuQc6+OJrPzQc5pUerKmeylHch+hPGbN2CiBEIQJWGpyArz /aJA== 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=n3xsfOYMyvjbcV00ySLzy9kgAOyjABhXLJUa+2Cip/E=; b=JctaGScqTRggigK0qEF0k0wbDhBdKvK2BVo64xcgIVrPro0qN/STU2S4VSqSWm/4pK lnJkQbqqPjlxvufmlONAU3lOY1ZtNZS3uTY3SC+JQ0+z+jsckessIKv5x9UeUf/ctmnj Qh0Fb1JUAadnYsyMh2MwZ5rbBfO/Fwa703xSuSORiDEw+GIvnIwpZkr0ziv6wNGLx88T l8HS7KoLxJ7oD0jkd5YK+R7MPPE/HOzEQs9iVS+WDK282dWgA1fM8/xkQ5MCcdFlm25y C3/uK+RO1BaY4psWFoxkQrS4/9DV9uu36ZQyou493gVYvkued9ZFhJ5fxfYEDpQAXB+u /11g== X-Gm-Message-State: AOAM532OmI9h/xInGBd//1bFoviU0fhgoiOa8QscOUEJud3zb24PxzBK mbx3AZvN/hSJ9qxv/falEXuXHQ4pFVsNSQ== X-Google-Smtp-Source: ABdhPJzF2fftKMo0xQma5VulQkWrRGEkQm/R7pYPQgq+yF1kKm+kXxt8H3SVrhO9sM2tatekmbDYrg== X-Received: by 2002:adf:df8c:: with SMTP id z12mr27606316wrl.292.1634047011715; Tue, 12 Oct 2021 06:56:51 -0700 (PDT) Received: from vm.nix.is (vm.nix.is. [2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id z6sm4031950wmp.1.2021.10.12.06.56.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 06:56:51 -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 v2 4/9] leak tests: mark all trace2 tests as passing with SANITIZE=leak Date: Tue, 12 Oct 2021 15:56:40 +0200 Message-Id: X-Mailer: git-send-email 2.33.0.1567.g7b23ce7ed9e 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 listed 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 Tue Oct 12 13:56:41 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: 12552779 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 7609FC433F5 for ; Tue, 12 Oct 2021 13:57:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 608466101D for ; Tue, 12 Oct 2021 13:57:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237106AbhJLN7A (ORCPT ); Tue, 12 Oct 2021 09:59:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236847AbhJLN64 (ORCPT ); Tue, 12 Oct 2021 09:58:56 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99A0EC061570 for ; Tue, 12 Oct 2021 06:56:54 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id e3so33608834wrc.11 for ; Tue, 12 Oct 2021 06:56:54 -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=wQhcbaSvWff1uMQtWebXvFrlJBrhC4YgnumYCexbcG0=; b=jQ7Q+erwr/kNkPl5lzgHy1Bfs/ubMsy8dyhpxIqQ2HpZErYZvcZFKgecOe3gevCMI9 pri4KXY6+5m+VkpuCL4cv+DI1/Z+uN1NrcHr72Y6m1dF+nLYPdhkpDDkjz8aWdJQV3TY gnhVFK3ChVI1hVNUFbYUo3AGx+LqwUKPjmHYpaTL3lZT/QXixFEKQiXTt0qj+mgIWdiX v+ysgSVoYI+yomh32OF+mCfRMpWf+Akz2vxtu4RiyJKqfZYheOcYmjoeHsl2SSjf57lr +CCGpbGGRdm6FoQZSt/sY9ToVhYZzO18hoaAnw/tfVv/fQ7ErSMUDnpjL+J1ipuB2KaV tk2Q== 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=wQhcbaSvWff1uMQtWebXvFrlJBrhC4YgnumYCexbcG0=; b=WAkkuBWpbwYTf9LeyasOBstvuIR4H0Ortoc9MguJueYRd4jhRftjfDIjpZbNQOm4m1 xPi4Yl2iDHy4Pz5NYrU1o1QiuHzWFDs/MJ6sG3ho2QSyy+8KUFj3WLVA+QyXe1bDpc0x nYGhUZi7CfNCFO57CECo5MKC8qUF+vRgpuRGCHbwVwbF3rC0hYVv7DiqSOT8WUYfqVlo /P2jx1UJECsiZjTHCQPOLjtX9ACZ5G/41K8/iaqSx9KP5UR+6ftbs4l7q2aQ6KZlGYqs /ifZj4YAxA/s7FWiEJAMaXxNYnLSvWe4qfXgzqdyQtc5HAdD6AA6/NVuxbnJB1CsPZO4 bDog== X-Gm-Message-State: AOAM5303W6atDsnRfKkxlGZWYMGBl7Itcpr7q/1om0iSwB3ihvyhlBHT DBUvWd32t5ip7dKbr67s/TQTEQ4DtuABjw== X-Google-Smtp-Source: ABdhPJy3DRo3gN1tIyxvArgRFz+E7AfHY5qmC66+jxoMaOgHo0mnEm4ICo6NJPcfkwvqd9196bBluA== X-Received: by 2002:a05:6000:186a:: with SMTP id d10mr20863046wri.279.1634047012493; Tue, 12 Oct 2021 06:56:52 -0700 (PDT) Received: from vm.nix.is (vm.nix.is. [2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id z6sm4031950wmp.1.2021.10.12.06.56.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 06:56:51 -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 v2 5/9] leak tests: mark all checkout-index tests as passing with SANITIZE=leak Date: Tue, 12 Oct 2021 15:56:41 +0200 Message-Id: X-Mailer: git-send-email 2.33.0.1567.g7b23ce7ed9e 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 listed 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 Tue Oct 12 13:56:42 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: 12552781 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 69BA3C433EF for ; Tue, 12 Oct 2021 13:57:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5209860238 for ; Tue, 12 Oct 2021 13:57:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237119AbhJLN7E (ORCPT ); Tue, 12 Oct 2021 09:59:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237062AbhJLN65 (ORCPT ); Tue, 12 Oct 2021 09:58:57 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C7AFC06161C for ; Tue, 12 Oct 2021 06:56:55 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id y3so34188968wrl.1 for ; Tue, 12 Oct 2021 06:56:55 -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=F4t3mxyFv3n4UuJI5K6T0XnkGvww/nHBHQWevXpHxeU=; b=HoFpGKm30VEM4Q5NnAybDGvqt4V7msYjR5LJ+VnTt5/UO/8tKaNbXOth7UtTns1pD0 /p+H2OMF3ZBpoUdj/TA6HDNsLdzUf3O4CyurfJSE6T4Nix6p6mH/sMBaPg+zyQVZzR7+ zFK442+Hy1SeXa57eKnuxCeqvQRcqp1L40WE6//Ax/kGYnwQdZj/RlWNlsBTjK0y7uDX E4DkB0aWI3nyYBqXqBPh25Th4gLp+mPjfpyIQjLaSmVShybpTuwIJUP6iGuJtUkdc26M rWJQ10WQzGvwKrr8qKUsoI/ANOPyZJOsW+bboDvPm/pb6zgPd9+q82hFusevxHqn+rjW 0GoQ== 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=F4t3mxyFv3n4UuJI5K6T0XnkGvww/nHBHQWevXpHxeU=; b=DQjFTyI5Afik/TBENVDZrAEKMnS9wsELQ1cm/VN8FqMGMukQxG6t+cMxTmKw5wBGIU znnXx5K6MyR/VdwSrA+A1NXrFhISNU6YUovUOS/SAx7jxHRiUpKUUNjJHVOjgGTth0Ja B1FqXx8mPcKJbbppIOjcCZFycG9EW1edtfS1QQS1yPJTNGsIxNrOO9C1Dn+Dkhwka4o/ 2oZp8dLzqQy8kwHJbxU5sbn8kgNoN6axWCIfwiJZwihIpOiaOqSEkQ2rHk98Yqyg/LFi N1TOesPog7siq7xCvblQdIHSh8QGpxzoAr1XkX/904cAtEZL3hBguG+/ijImwwpPXlRY Nnrg== X-Gm-Message-State: AOAM531w/Ety/civUeycOCvqv8dz95Xr1ppXddakabDK+LLKdHswlVYk zmVJN2oZ15fJqWCKZeaXl0E86HZIyD/QgQ== X-Google-Smtp-Source: ABdhPJySzJjU3JYbb7keTnciUO3asHMvmB8c16kpd5+nuu2wiFv4x1pObJw4mOW1ph5Fw+JIATBPbQ== X-Received: by 2002:a05:6000:11:: with SMTP id h17mr10649496wrx.278.1634047013300; Tue, 12 Oct 2021 06:56:53 -0700 (PDT) Received: from vm.nix.is (vm.nix.is. [2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id z6sm4031950wmp.1.2021.10.12.06.56.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 06:56:52 -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 v2 6/9] leak tests: mark some ls-files tests as passing with SANITIZE=leak Date: Tue, 12 Oct 2021 15:56:42 +0200 Message-Id: X-Mailer: git-send-email 2.33.0.1567.g7b23ce7ed9e 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 listed 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 Tue Oct 12 13:56:43 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: 12552783 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 1BC77C433FE for ; Tue, 12 Oct 2021 13:57:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 07CA060EBB for ; Tue, 12 Oct 2021 13:57:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237162AbhJLN7I (ORCPT ); Tue, 12 Oct 2021 09:59:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237098AbhJLN65 (ORCPT ); Tue, 12 Oct 2021 09:58:57 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01626C061753 for ; Tue, 12 Oct 2021 06:56:56 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id r10so67303347wra.12 for ; Tue, 12 Oct 2021 06:56:55 -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=y9lNttF25u9nUOJm6npdBcYz4McJD2llzc//dDCF+sA=; b=o66iomydv5aYEThmcekRx61GOusUS2xNjuleMRIAnYf3k32Y0AbrlkL458FLkw6Hu+ 6TMJtMUdCglHB0Oly8ryXIrCY0MGK6ZfR42yflangI4sU8+/SNLeU4sJqmky2YrA+TiK M6vhlT8wuR6fUsrn2RDBlDJfIj4QD2EJo2HPkRh/DZKYemNZ8WWCAOYUVEZXrssfl8yN gw2fg1HDF/oSa1Ko0kr3zEulap8gFsel1UkYULjiAKACbKOQoW20v5IprscXpL/TGuyo o4n6+DAQgRkDz+RZAkktk8MDNmA+5iBixG11XE0fVOQH4dBjAqFvkiIDwfrIbDAOExCx eVZQ== 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=y9lNttF25u9nUOJm6npdBcYz4McJD2llzc//dDCF+sA=; b=Qr846AYQ/v6AZKSZGMQHAVg3RgNfS6dglbP0qCRngBW6crpfTOowxxgiZNU0r9qCuN rlO+R120bCkhUGEa1OQdqMbYpx21jH/wrnwrW9xg0e431+qe2aTNJ//Njume6hyLhBUT JXDlzgYhYkdlYCO3PHEyWdDEcy8Gar4kJIU59M41X2Qg3cP69xO/hzwjvDeglHBWHN2w bEPfmuZueIyVqTrxUbKS4UOzW8y9rOAsd0GJFne51p4NDTZAH4P/oonkM1rL22h90P3A tR94zHg7tVIfHIuGzcr4Wx/u4JbS9+tMF3785KrqCD/COJytrCKfeynpsL18lSPQpXCl wbeQ== X-Gm-Message-State: AOAM5303D9vxgCm6Ko7E65uwybMesizQyam9lEVGMMBrNGNUjqeCMrvy pDMtuW6phJOMaPHlRF5EoMSe9EfaaNapBg== X-Google-Smtp-Source: ABdhPJx0qlDkraay+4O2sf5wckCwPpRp5KCyExqRYc89EAgO+ZgT87M7nk8pOV6lejkgOkgKFjGGIw== X-Received: by 2002:a05:600c:3b82:: with SMTP id n2mr5666626wms.46.1634047013897; Tue, 12 Oct 2021 06:56:53 -0700 (PDT) Received: from vm.nix.is (vm.nix.is. [2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id z6sm4031950wmp.1.2021.10.12.06.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 06:56:53 -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 v2 7/9] leak tests: mark some read-tree tests as passing with SANITIZE=leak Date: Tue, 12 Oct 2021 15:56:43 +0200 Message-Id: X-Mailer: git-send-email 2.33.0.1567.g7b23ce7ed9e 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 listed 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 Tue Oct 12 13:56:44 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: 12552785 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 07167C4332F for ; Tue, 12 Oct 2021 13:57:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E9D5160E94 for ; Tue, 12 Oct 2021 13:57:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237167AbhJLN7J (ORCPT ); Tue, 12 Oct 2021 09:59:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236903AbhJLN66 (ORCPT ); Tue, 12 Oct 2021 09:58:58 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EB56C061762 for ; Tue, 12 Oct 2021 06:56:56 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id e3so33609248wrc.11 for ; Tue, 12 Oct 2021 06:56:56 -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=cv+h3lVrZST3rwjjXDw4M6hw314+ZIHhnkGxQS8R03Y=; b=hV8b1iPwkx7QSB7xTIW39TKYBA4URbzHLpC8SP3ZR9kdv0M3LGMgd/JP20C6lcs7Ai ouMMOQX3TN+87BbIuY5T/MXqGKnGjsIJEwdhMroSEO75zazuSM+FquO1hhNCTD1WowY4 KPUMY7zHHU85FRPCejDY8cYNgf4t6c+6ygSjUzafxTZ4Cv85cgl8Qx8mmc0jm/DvB6ku 7LsjVKbN929N1OR70XLDKme7jkLdrfyswWD7wUAligXF7bBbV/aztqa0fV4rT/UCBIa0 Wvv76YRqNsip3r8Xx1Pz+KTxgyC6QaP7DVnbhFiD/xI1rgcQ1EsbzpCbFoz/wkdcDf+l OwJQ== 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=cv+h3lVrZST3rwjjXDw4M6hw314+ZIHhnkGxQS8R03Y=; b=0L/H8werDeRM4tWyPiTHlyXbeEdEPhCziTgPvaip4bWGZmZGQv2JUGIFS19ytXFU0s fN+s13mJTpKvMYlrHh7TqJsltz6cjS9FWKF+27t3l16G+RreUWzLBzntS258xd7yXHMO rLyikE6gLL8G6KpbPGLttwZzKr1Y6UxX+/JjjH3wL+Z2WtxaVcMmttJ+f5VxJfSnf6Pf qUGxJPszxFN2ujHd3/49NLiUENaBx/aIUty1LiFl3p8IUD5LZPyOGLq7B2nhxgr8u/q9 ihBr3VRL1HafWZVuVmiR0qDmPXOEADylt90RAy2DzZzHnri+a26I3KKaeI+qT9PXi2x9 P5ow== X-Gm-Message-State: AOAM530puh3n/lwjbt8YjkOgwO6QPmPswkmG2mdRaiY4dAdQFWywTatw srUOeAEb6R0FBc2Dd7QOVijt3XB9KB5O+w== X-Google-Smtp-Source: ABdhPJyPvA85F1Z8hn/fJoZZaw8RIQsU/fxtlY39YYwW/CxIYXod06ztVveteQMqAsRYZDIEmdEUSA== X-Received: by 2002:a05:6000:551:: with SMTP id b17mr32046408wrf.18.1634047014894; Tue, 12 Oct 2021 06:56:54 -0700 (PDT) Received: from vm.nix.is (vm.nix.is. [2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id z6sm4031950wmp.1.2021.10.12.06.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 06:56:54 -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 v2 8/9] leak tests: mark various "generic" tests as passing with SANITIZE=leak Date: Tue, 12 Oct 2021 15:56:44 +0200 Message-Id: X-Mailer: git-send-email 2.33.0.1567.g7b23ce7ed9e 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 fa3aeb80f2c..4c77cf89a6c 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 Tue Oct 12 13:56:45 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: 12552787 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 4E20FC433F5 for ; Tue, 12 Oct 2021 13:57:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3830960EBB for ; Tue, 12 Oct 2021 13:57:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237176AbhJLN7K (ORCPT ); Tue, 12 Oct 2021 09:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237108AbhJLN67 (ORCPT ); Tue, 12 Oct 2021 09:58:59 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D71DC061570 for ; Tue, 12 Oct 2021 06:56:57 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id k7so67101853wrd.13 for ; Tue, 12 Oct 2021 06:56:57 -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=kGvF9Lx8tyOZBdFnvKsOlGfbb+jzFP2WqHQRso2a93k=; b=cm27hyQZLaFpRCwt7C07NTOHx7F9Wpo8BH8iqh2tCjx1WbKrHCtDVnMWBaFXkGH8O/ tnxIS3vhVubL6UHXiBBohOnq0LDEuwJsNjAGTUvBRC9u+3c37P6XDBSrKmgNJxYbH+qF P9K0fkFRlvIXSCwcqXQHyZIdqMRmVDNh5m8eHWyuUb/aUibTEgd60vwSwkICcj33AqL2 93ehrjyV+UoCRPbnnlQUNBToVsJdcBPlTvV2J4s22Lx/p4cnaKg3DpKTjbuFtai9pai0 nx4GvoQWHCNPrBHuM/ZfexqwjXS0W8iRHsUZtUuHJH8ElCCrC7hoPjiTkH1l6A02sa/x Yp7g== 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=kGvF9Lx8tyOZBdFnvKsOlGfbb+jzFP2WqHQRso2a93k=; b=MZhLuX8ByPwFDPwTYx5iwE/KVxfR2do37NAOHptgi2GclEwlITwoyZojnqvlG2zJTr f/p95cyoTNqGXnsJSc1H//CC6pz89O2s9iDUw6Gy9J+qc2vxDZug7zCDrDEQkcn+qj0V TIc0yIr1pHHCCBQUaUk4MKJNKzbW5IMGv4CH2TaICF718eV1knGp2RQrJiv+RMDLpYIL 9Qgv8DIp7bLO0tgZh0uEe69M6WLSwzUTlXnE4NbF9ecmDivD6epwJXr8TGB9GZfTK4Pk nmYV2EdZjdcbUoGEVR/5ZnoaVhVNzlO3zEXGUdnapqCcBOvJltlj1u2BqSxAWfGIvXZh RRew== X-Gm-Message-State: AOAM530DE+uUH9VIv76T9zhVdfKU4WQ6jsCM1//PL6AWeEnn6ouYRaAh k519rWA64eTxXs6Ptz449GDUBsOZaOMMvg== X-Google-Smtp-Source: ABdhPJw2jQIksFs9Lqf9m91h11AXwBokl2sW8aJJiHm7npJ/3FH4ZNBXpOLO8X16LwExIO3rQAqB6g== X-Received: by 2002:adf:f192:: with SMTP id h18mr9847750wro.33.1634047015662; Tue, 12 Oct 2021 06:56:55 -0700 (PDT) Received: from vm.nix.is (vm.nix.is. [2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id z6sm4031950wmp.1.2021.10.12.06.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 06:56:55 -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 v2 9/9] leak tests: mark some misc tests as passing with SANITIZE=leak Date: Tue, 12 Oct 2021 15:56:45 +0200 Message-Id: X-Mailer: git-send-email 2.33.0.1567.g7b23ce7ed9e 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 listed 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/t7813-grep-icase-iso.sh | 1 + t/t7816-grep-binary-pattern.sh | 1 + 10 files changed, 12 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 <