[PATCH 05/10] leak tests: mark all trace2 tests as passing with SANITIZE=leak
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Oct 6, 2021, 09:50 UTC
- Message-ID
- <patch-05.10-da2631ce626-20211006T094705Z-avarab@gmail.com>
- In-Reply-To
- <cover-00.10-00000000000-20211006T094705Z-avarab@gmail.com>
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 <avarab@gmail.com> --- 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.
-- 2.33.0.1441.gbbcdb4c3c66