From: Brandon Casey Date: Thu, 16 Oct 2008 00:58:49 +0000 (-0500) Subject: t4018-diff-funcname: rework negated last expression test X-Git-Tag: v1.6.0.3~14 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/16b26725368f7b80711d9a631029fbb869646f9c?hp=16b26725368f7b80711d9a631029fbb869646f9c t4018-diff-funcname: rework negated last expression test This test used the non-zero exit status of 'git diff' to indicate that a negated funcname pattern, when placed last, was correctly rejected. The problem with this is that 'git diff' always returns non-zero if it finds differences in the files it is comparing, and the files must contain differences in order to trigger the funcname pattern codepath. Instead of checking for non-zero exit status, make sure the expected error message is printed. Signed-off-by: Brandon Casey Signed-off-by: Junio C Hamano ---