From: Joey Hess Date: Sun, 13 Sep 2009 23:40:42 +0000 (-0400) Subject: fix CVS prune test X-Git-Tag: 3.14159265~36 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/b94c1ccd552f70b8ecce8f414563b4c6b6385e08 fix CVS prune test The regexp only matches things inside the CVS directory, not just "CVS" by itself. I changed the test to not test that it will be pruned. --- diff --git a/t/file_pruned.t b/t/file_pruned.t index a05ad548f..00542d580 100755 --- a/t/file_pruned.t +++ b/t/file_pruned.t @@ -1,7 +1,7 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More tests => 27; +use Test::More tests => 26; BEGIN { use_ok("IkiWiki"); } @@ -9,8 +9,7 @@ BEGIN { use_ok("IkiWiki"); } ok(IkiWiki::file_pruned("src/.ikiwiki/", "src")); ok(IkiWiki::file_pruned("src/.ikiwiki/index", "src")); -ok(IkiWiki::file_pruned("src/CVS", "src")); -ok(IkiWiki::file_pruned("src/subdir/CVS", "src")); +ok(IkiWiki::file_pruned("src/CVS/foo", "src")); ok(IkiWiki::file_pruned("src/subdir/CVS/foo", "src")); ok(IkiWiki::file_pruned("src/.svn", "src")); ok(IkiWiki::file_pruned("src/subdir/.svn", "src"));