Skip to content

Commit

Permalink
Escape test file name in regexp
Browse files Browse the repository at this point in the history
Don't let windows backslashes be interpreted as escapes.
  • Loading branch information
rwstauner committed Aug 15, 2013
1 parent cb4e91f commit 26820be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/lib/AggTestTester.pm
Expand Up @@ -120,7 +120,7 @@ sub run {
# Check diag to see that we ran each script.
# This is redundant with the setup block test but it makes me feel good.
my @exp_diags = (
(map { qr/ $_ \(\d out of ${\scalar @{ $self->{tests} }}\)/ }
(map { qr/ \Q$_\E \(\d out of ${\scalar @{ $self->{tests} }}\)/ }
@{ $self->{tests} }),
@{ $self->{diag} },
);
Expand Down

0 comments on commit 26820be

Please sign in to comment.