t: remove unneeded !SANITIZE_LEAK prerequisites

We have a couple of !SANITIZE_LEAK prerequisites for tests that used to fail due to memory leaks. These have all been fixed by now, so let's drop the prerequisite. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Nov 20, 2024 at 14:39 UTC 0b7f0ce751d1326abe1aba8ed700a8d46cdf9f7a
3 files changed +11 -11
t/t0095-bloom.sh
+1 -1
@@ -77,7 +77,7 @@ test_expect_success 'compute bloom key for test string 2' '
77 test_cmp expect actual
78 '
79
80 -test_expect_success !SANITIZE_LEAK 'get bloom filters for commit with no changes' '
80 +test_expect_success 'get bloom filters for commit with no changes' '
81 git init &&
82 git commit --allow-empty -m "c0" &&
83 cat >expect <<-\EOF &&
t/t2407-worktree-heads.sh
+8 -8
@@ -49,7 +49,7 @@ test_expect_success 'refuse to overwrite: checked out in worktree' '
49 done
50 '
51
52 -test_expect_success !SANITIZE_LEAK 'refuse to overwrite: worktree in bisect' '
52 +test_expect_success 'refuse to overwrite: worktree in bisect' '
53 test_when_finished git -C wt-4 bisect reset &&
54
55 # Set up a bisect so HEAD no longer points to wt-4.
@@ -61,7 +61,7 @@ test_expect_success !SANITIZE_LEAK 'refuse to overwrite: worktree in bisect' '
61 grep "cannot force update the branch '\''wt-4'\'' used by worktree at.*wt-4" err
62 '
63
64 -test_expect_success !SANITIZE_LEAK 'refuse to overwrite: worktree in rebase (apply)' '
64 +test_expect_success 'refuse to overwrite: worktree in rebase (apply)' '
65 test_when_finished git -C wt-2 rebase --abort &&
66
67 # This will fail part-way through due to a conflict.
@@ -71,7 +71,7 @@ test_expect_success !SANITIZE_LEAK 'refuse to overwrite: worktree in rebase (app
71 grep "cannot force update the branch '\''wt-2'\'' used by worktree at.*wt-2" err
72 '
73
74 -test_expect_success !SANITIZE_LEAK 'refuse to overwrite: worktree in rebase (merge)' '
74 +test_expect_success 'refuse to overwrite: worktree in rebase (merge)' '
75 test_when_finished git -C wt-2 rebase --abort &&
76
77 # This will fail part-way through due to a conflict.
@@ -81,7 +81,7 @@ test_expect_success !SANITIZE_LEAK 'refuse to overwrite: worktree in rebase (mer
81 grep "cannot force update the branch '\''wt-2'\'' used by worktree at.*wt-2" err
82 '
83
84 -test_expect_success !SANITIZE_LEAK 'refuse to overwrite: worktree in rebase with --update-refs' '
84 +test_expect_success 'refuse to overwrite: worktree in rebase with --update-refs' '
85 test_when_finished git -C wt-3 rebase --abort &&
86
87 git branch -f can-be-updated wt-3 &&
@@ -95,7 +95,7 @@ test_expect_success !SANITIZE_LEAK 'refuse to overwrite: worktree in rebase with
95 done
96 '
97
98 -test_expect_success !SANITIZE_LEAK 'refuse to fetch over ref: checked out' '
98 +test_expect_success 'refuse to fetch over ref: checked out' '
99 test_must_fail git fetch server +refs/heads/wt-3:refs/heads/wt-3 2>err &&
100 grep "refusing to fetch into branch '\''refs/heads/wt-3'\''" err &&
101
@@ -105,7 +105,7 @@ test_expect_success !SANITIZE_LEAK 'refuse to fetch over ref: checked out' '
105 grep "refusing to fetch into branch" err
106 '
107
108 -test_expect_success !SANITIZE_LEAK 'refuse to fetch over ref: worktree in bisect' '
108 +test_expect_success 'refuse to fetch over ref: worktree in bisect' '
109 test_when_finished git -C wt-4 bisect reset &&
110
111 # Set up a bisect so HEAD no longer points to wt-4.
@@ -117,7 +117,7 @@ test_expect_success !SANITIZE_LEAK 'refuse to fetch over ref: worktree in bisect
117 grep "refusing to fetch into branch" err
118 '
119
120 -test_expect_success !SANITIZE_LEAK 'refuse to fetch over ref: worktree in rebase' '
120 +test_expect_success 'refuse to fetch over ref: worktree in rebase' '
121 test_when_finished git -C wt-3 rebase --abort &&
122
123 # This will fail part-way through due to a conflict.
@@ -157,7 +157,7 @@ test_expect_success 'refuse to overwrite when in error states' '
157
158 . "$TEST_DIRECTORY"/lib-rebase.sh
159
160 -test_expect_success !SANITIZE_LEAK 'refuse to overwrite during rebase with --update-refs' '
160 +test_expect_success 'refuse to overwrite during rebase with --update-refs' '
161 git commit --fixup HEAD~2 --allow-empty &&
162 (
163 set_cat_todo_editor &&
t/t4020-diff-external.sh
+2 -2
@@ -102,7 +102,7 @@ test_expect_success 'diff attribute' '
102 test_cmp expect actual
103 '
104
105 -test_expect_success !SANITIZE_LEAK 'diff attribute should apply only to diff' '
105 +test_expect_success 'diff attribute should apply only to diff' '
106 git log -p -1 HEAD >out &&
107 grep "^diff --git a/file b/file" out
108
@@ -129,7 +129,7 @@ test_expect_success 'diff attribute' '
129 test_cmp expect actual
130 '
131
132 -test_expect_success !SANITIZE_LEAK 'diff attribute should apply only to diff' '
132 +test_expect_success 'diff attribute should apply only to diff' '
133 git log -p -1 HEAD >out &&
134 grep "^diff --git a/file b/file" out
135