Add another ignore example to the manual and test suite.

This commit is contained in:
Adam Spiers 2011-12-21 11:45:43 +00:00
parent 6e5331814d
commit 7c90000393
2 changed files with 7 additions and 7 deletions

View file

@ -505,11 +505,11 @@ expressions which contain @samp{/}, and @code{bazqux} as the text for
matching against regular expressions which don't contain @samp{/}. matching against regular expressions which don't contain @samp{/}.
Then regular expressions @code{bazqux}, @code{baz.*}, @code{.*qux}, Then regular expressions @code{bazqux}, @code{baz.*}, @code{.*qux},
@code{bar/.*x}, and @code{^/foo/.*qux} would all match (causing the @code{bar/.*x}, and @code{^/foo/.*qux} would all match (causing the
file to be ignored), whereas @code{bar}, @code{baz}, and @code{qux} file to be ignored), whereas @code{bar}, @code{baz}, @code{qux}, and
would not (although @code{bar} would cause its parent directory to be @code{o/bar/b} would not (although @code{bar} would cause its parent
ignored and prevent Stow from recursing into that anyway, in which directory to be ignored and prevent Stow from recursing into that
case the file @file{bazqux} would not even be considered for anyway, in which case the file @file{bazqux} would not even be
stowing). considered for stowing).
As a special exception to the above algorithm, any As a special exception to the above algorithm, any
@file{.stow-local-ignore} present in the top-level package directory @file{.stow-local-ignore} present in the top-level package directory

View file

@ -8,7 +8,7 @@ use strict;
use warnings; use warnings;
use File::Temp qw(tempdir); use File::Temp qw(tempdir);
use Test::More tests => 286; use Test::More tests => 287;
use testutil; use testutil;
use Stow::Util qw(join_paths); use Stow::Util qw(join_paths);
@ -235,7 +235,7 @@ sub test_examples_in_manual {
); );
} }
for my $re ('bar', 'baz', 'qux') { for my $re ('bar', 'baz', 'qux', 'o/bar/b') {
my $local_ignore = setup_package_local_list($stow_path, $package, "$re\n"); my $local_ignore = setup_package_local_list($stow_path, $package, "$re\n");
test_ignores( test_ignores(
$stow_path, $package, $context, $stow_path, $package, $context,