Skip to content

Commit 6cb7796

Browse files
avargitster
authored andcommitted
userdiff: remove support for "broken" tests
There have been no "broken" tests since 75c3b6b (userdiff: improve Fortran xfuncname regex, 2020-08-12). Let's remove the test support for them. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 28e8f0d commit 6cb7796

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

t/t4018-diff-funcname.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,7 @@ test_expect_success 'setup hunk header tests' '
9494
# check each individual file
9595
for i in $(git ls-files)
9696
do
97-
if grep broken "$i" >/dev/null 2>&1
98-
then
99-
result=failure
100-
else
101-
result=success
102-
fi
103-
test_expect_$result "hunk header: $i" "
97+
test_expect_success "hunk header: $i" "
10498
git diff -U1 $i >actual &&
10599
grep '@@ .* @@.*RIGHT' actual
106100
"

t/t4018/README

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ at least two lines from the line that must appear in the hunk header.
77
The text that must appear in the hunk header must contain the word
88
"right", but in all upper-case, like in the title above.
99

10-
To mark a test case that highlights a malfunction, insert the word
11-
BROKEN in all lower-case somewhere in the file.
12-
1310
This text is a bit twisted and out of order, but it is itself a
1411
test case for the default hunk header pattern. Know what you are doing
1512
if you change it.

0 commit comments

Comments
 (0)