diff options
author | Denton Liu <liu.denton@gmail.com> | 2020-07-07 18:08:07 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-07-07 15:46:35 -0700 |
commit | 41feac6f74719922bcc0bd44683518a6d6a8a943 (patch) | |
tree | 36de2f0d657fdb8ccaac695a7c3c83fb2784586b /t | |
parent | t9834: remove use of `test_might_fail p4` (diff) | |
download | tgif-41feac6f74719922bcc0bd44683518a6d6a8a943.tar.xz |
t9400: don't use test_must_fail with cvs
We are using `test_must_fail cvs` to test that the cvs command fails as
expected. However, test_must_fail() is used to ensure that commands fail
in an expected way, not due to something like a segv. Since we are not
in the business of verifying the sanity of the external world, replace
`test_must_fail cvs` with `! cvs` and assume that the cvs command does
not die unexpectedly.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t9400-git-cvsserver-server.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9400-git-cvsserver-server.sh b/t/t9400-git-cvsserver-server.sh index a5e5dca753..4a46f31c41 100755 --- a/t/t9400-git-cvsserver-server.sh +++ b/t/t9400-git-cvsserver-server.sh @@ -603,7 +603,7 @@ test_expect_success 'cvs server does not run with vanilla git-shell' ' cd cvswork && CVS_SERVER=$WORKDIR/remote-cvs && export CVS_SERVER && - test_must_fail cvs log merge + ! cvs log merge ) ' |