]> git.ipfire.org Git - thirdparty/git.git/commitdiff
userdiff: remove support for "broken" tests
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 8 Apr 2021 15:04:22 +0000 (17:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Apr 2021 19:19:10 +0000 (12:19 -0700)
There have been no "broken" tests since 75c3b6b2e8 (userdiff: improve
Fortran xfuncname regex, 2020-08-12). Let's remove the test support
for them.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4018-diff-funcname.sh
t/t4018/README

index 409372f3a48cf2781f314ffec7cb8a32ea15f71d..740696c8f7f2c437ce9260ed30e4ba2b563a30ab 100755 (executable)
@@ -94,13 +94,7 @@ test_expect_success 'setup hunk header tests' '
 # check each individual file
 for i in $(git ls-files)
 do
-       if grep broken "$i" >/dev/null 2>&1
-       then
-               result=failure
-       else
-               result=success
-       fi
-       test_expect_$result "hunk header: $i" "
+       test_expect_success "hunk header: $i" "
                git diff -U1 $i >actual &&
                grep '@@ .* @@.*RIGHT' actual
        "
index 283e01cca1ac5f9084ad2d52f96332f5e8e392b4..2d25b2b4fc98b49eb836e1d569cb21f7699b3bca 100644 (file)
@@ -7,9 +7,6 @@ at least two lines from the line that must appear in the hunk header.
 The text that must appear in the hunk header must contain the word
 "right", but in all upper-case, like in the title above.
 
-To mark a test case that highlights a malfunction, insert the word
-BROKEN in all lower-case somewhere in the file.
-
 This text is a bit twisted and out of order, but it is itself a
 test case for the default hunk header pattern. Know what you are doing
 if you change it.