Skip to content

Commit 4bc280f

Browse files
avargitster
authored andcommitted
wildmatch test: use test_must_fail, not ! for test-wildmatch
Use of ! should be reserved for non-git programs that are assumed not to fail, see README. With this change only t/t0110-urlmatch-normalization.sh is still using this anti-pattern. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 50eafb1 commit 4bc280f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t3070-wildmatch.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ match() {
1313
elif test "$1" = 0
1414
then
1515
test_expect_success "wildmatch: no match '$2' '$3'" "
16-
! test-wildmatch wildmatch '$2' '$3'
16+
test_must_fail test-wildmatch wildmatch '$2' '$3'
1717
"
1818
else
1919
test_expect_success "PANIC: Test framework error. Unknown matches value $1" 'false'
@@ -29,7 +29,7 @@ imatch() {
2929
elif test "$1" = 0
3030
then
3131
test_expect_success "iwildmatch: no match '$2' '$3'" "
32-
! test-wildmatch iwildmatch '$2' '$3'
32+
test_must_fail test-wildmatch iwildmatch '$2' '$3'
3333
"
3434
else
3535
test_expect_success "PANIC: Test framework error. Unknown matches value $1" 'false'
@@ -45,7 +45,7 @@ pathmatch() {
4545
elif test "$1" = 0
4646
then
4747
test_expect_success "pathmatch: no match '$2' '$3'" "
48-
! test-wildmatch pathmatch '$2' '$3'
48+
test_must_fail test-wildmatch pathmatch '$2' '$3'
4949
"
5050
else
5151
test_expect_success "PANIC: Test framework error. Unknown matches value $1" 'false'

0 commit comments

Comments
 (0)