tests: apply modern idiom for signaling test failure
commit77b1d9f355b44b68b4bb08a8143d13330fe4c562
authorEric Sunshine <sunshine@sunshineco.com>
Thu, 9 Dec 2021 05:11:09 +0000 (9 00:11 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Dec 2021 18:29:48 +0000 (13 10:29 -0800)
tree17c51dff4fbb0d7815a76e16ccde74cd9e89a62c
parent7abcbcb7ea4303adffd169d5367ce70904e79bf5
tests: apply modern idiom for signaling test failure

Simplify the way these tests signal failure by employing the modern
idiom of making the `if` or `case` statement resolve to false when an
error is detected.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2102-update-index-symlinks.sh
t/t3402-rebase-merge.sh
t/t3700-add.sh