t3200: test for specific errors
authorDenton Liu <liu.denton@gmail.com>
Mon, 15 Jun 2020 11:53:19 +0000 (07:53 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jun 2020 18:12:32 +0000 (11:12 -0700)
commit6b7093064a8db318bb18272a064590d558998dbf
tree2ad2d5064f44e9596a4577a64d05eb0539b96e88
parent6d504d5b0f6cf5eff454fd070c05ca3f014fc8fa
t3200: test for specific errors

In the "--set-upstream-to" and "--unset-upstream" tests, specific error
conditions are being tested. However, there is no way of ensuring that a
test case is failing because of some specific error.

Check stderr of failing commands to ensure that they are failing in the
expected way.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3200-branch.sh