wildmatch test: use test_must_fail, not ! for test-wildmatch
[gitweb.git] / t / t3070-wildmatch.sh
index 2f8a681c7299c652b424eef25095239929074def..fe0e5103a3146e4caac9bd2f7c84f162e9d7022d 100755 (executable)
@@ -13,7 +13,7 @@ match() {
        elif test "$1" = 0
        then
                test_expect_success "wildmatch: no match '$2' '$3'" "
-                       ! test-wildmatch wildmatch '$2' '$3'
+                       test_must_fail test-wildmatch wildmatch '$2' '$3'
                "
        else
                test_expect_success "PANIC: Test framework error. Unknown matches value $1" 'false'
@@ -29,7 +29,7 @@ imatch() {
        elif test "$1" = 0
        then
                test_expect_success "iwildmatch: no match '$2' '$3'" "
-                       ! test-wildmatch iwildmatch '$2' '$3'
+                       test_must_fail test-wildmatch iwildmatch '$2' '$3'
                "
        else
                test_expect_success "PANIC: Test framework error. Unknown matches value $1" 'false'
@@ -45,7 +45,7 @@ pathmatch() {
        elif test "$1" = 0
        then
                test_expect_success "pathmatch: no match '$2' '$3'" "
-                       ! test-wildmatch pathmatch '$2' '$3'
+                       test_must_fail test-wildmatch pathmatch '$2' '$3'
                "
        else
                test_expect_success "PANIC: Test framework error. Unknown matches value $1" 'false'