chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test suite: manpages-format: work properly when no expected warnings
[dgit.git]
/
tests
/
tests
/
manpages-format
diff --git
a/tests/tests/manpages-format
b/tests/tests/manpages-format
index c905445ba033f24862c3101ce9f98cfba9160ea7..79efb87581af18278bff959c6ec5ab60a577ba07 100755
(executable)
--- a/
tests/tests/manpages-format
+++ b/
tests/tests/manpages-format
@@
-37,12
+37,14
@@
not_egrep_vxPf () {
perl -ne '
BEGIN () {
open PATS, shift @ARGV or die $!;
perl -ne '
BEGIN () {
open PATS, shift @ARGV or die $!;
- $re = join "|", map { chomp; qr{^(?:$_)$} } <PATS>;
+ $re = join "|", map { chomp; qr{^(?:$_)$} }
+ qr{^(?=a)b}, <PATS>;
+ print STDERR "RE $re\n";
}
next if m{$re};
print STDERR "unexpected: $_";
$bad = 1;
}
next if m{$re};
print STDERR "unexpected: $_";
$bad = 1;
- END { die "unexpected
, re= $re
\n" if $bad; }
+ END { die "unexpected
errors
\n" if $bad; }
' "$@"
}
' "$@"
}