t7510-signed-commit: use 'test_must_fail'
commit9dd39821e3d0adf3f160642589291965c73a529e
authorSZEDER Gábor <szeder.dev@gmail.com>
Mon, 4 Jun 2018 13:39:25 +0000 (4 15:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Jun 2018 17:19:03 +0000 (11 10:19 -0700)
tree9e99c4034552454e675a688d824f1b508eb1f5ce
parent3e5524907b43337e82a24afbc822078daf7a868f
t7510-signed-commit: use 'test_must_fail'

The two tests 'detect fudged signature' and 'detect fudged signature
with NUL' in 't7510-signed-commit.sh' check that 'git verify-commit'
errors out when encountering a forged commit, but they do so by
running

  ! git verify-commit ...

Use 'test_must_fail' instead, because that would catch potential
unexpected errors like a segfault as well.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7510-signed-commit.sh