From: Amitai Schlair Date: Wed, 1 Feb 2012 16:04:37 +0000 (-0500) Subject: Fail a test if an rcs_receive() hook is ever defined for CVS. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b0d97cd20eb52a7924149df86ae64e837d023b65;p=ikiwiki.git Fail a test if an rcs_receive() hook is ever defined for CVS. --- diff --git a/t/cvs.t b/t/cvs.t index af91b1c64..62ed179f3 100755 --- a/t/cvs.t +++ b/t/cvs.t @@ -333,7 +333,10 @@ sub test_rcs_getmtime { } sub test_rcs_receive { - pass(q{rcs_receive doesn't make sense for CVS}); + my $description = q{rcs_receive doesn't make sense for CVS}; + exists $IkiWiki::hooks{rcs}{rcs_receive} + ? fail($description) + : pass($description); } sub test_rcs_preprevert {