From ce14e0b264b31dd02a0c9d1688bceb6579d052fa Mon Sep 17 00:00:00 2001 From: Jared Hance Date: Tue, 20 Jul 2010 19:18:34 -0400 Subject: Convert "! git" to "test_must_fail git" test_must_fail will account for segfaults in git, so it should be used instead of "! git" This patch does not change any of the commands that use pipes. Signed-off-by: Jared Hance Signed-off-by: Junio C Hamano --- t/t9140-git-svn-reset.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/t9140-git-svn-reset.sh') diff --git a/t/t9140-git-svn-reset.sh b/t/t9140-git-svn-reset.sh index 0735526d4b..e855904629 100755 --- a/t/t9140-git-svn-reset.sh +++ b/t/t9140-git-svn-reset.sh @@ -41,7 +41,7 @@ test_expect_success 'modify hidden file in SVN repo' ' test_expect_success 'fetch fails on modified hidden file' ' ( cd g && git svn find-rev refs/remotes/git-svn > ../expect && - ! git svn fetch 2> ../errors && + test_must_fail git svn fetch 2> ../errors && git svn find-rev refs/remotes/git-svn > ../expect2 ) && fgrep "not found in commit" errors && test_cmp expect expect2 -- cgit v1.2.3