From: Jarkko Hietaniemi Date: Mon, 26 Oct 1998 09:08:00 +0000 (+0000) Subject: More robustness. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2c88fa888f003d5ed662773b59e0a8b1ff819c61;p=p5sagit%2Fp5-mst-13.2.git More robustness. p4raw-id: //depot/cfgperl@2092 --- diff --git a/t/comp/require.t b/t/comp/require.t index 1959326..0f3b97f 100755 --- a/t/comp/require.t +++ b/t/comp/require.t @@ -37,7 +37,7 @@ print "ok ",$i++,"\n"; do_require "1)\n"; # bison says 'parser error' instead of 'syntax error', # various yaccs may or may not capitalize 'syntax'. -print "# $@\nnot " unless $@ =~ /(syntax|parser) error/i; +print "# $@\nnot " unless $@ =~ /(syntax|parser) error/mi; print "ok ",$i++,"\n"; # successful require diff --git a/t/op/misc.t b/t/op/misc.t index b924f89..f8bc215 100755 --- a/t/op/misc.t +++ b/t/op/misc.t @@ -38,7 +38,7 @@ for (@prgs){ $results =~ s/\n+$//; # bison says 'parser error' instead of 'syntax error', # various yaccs may or may not capitalize 'syntax'. - $results =~ s/^(syntax|parser) error/\L$1 error/i; + $results =~ s/^(syntax|parser) error/\L$1 error/mi; $expected =~ s/\n+$//; if ( $results ne $expected){ print STDERR "PROG: $switch\n$prog\n"; diff --git a/t/pragma/subs.t b/t/pragma/subs.t index 58b53ae..dc272f6 100755 --- a/t/pragma/subs.t +++ b/t/pragma/subs.t @@ -57,7 +57,7 @@ for (@prgs){ $results =~ s/\n%[A-Z]+-[SIWEF]-.*$// if $Is_VMS; # clip off DCL status msg # bison says 'parser error' instead of 'syntax error', # various yaccs may or may not capitalize 'syntax'. - $results =~ s/^(syntax|parser) error/\L$1 error/i; + $results =~ s/^(syntax|parser) error/\L$1 error/mi; $expected =~ s/\n+$//; my $prefix = ($results =~ s/^PREFIX\n//) ; if ( $results =~ s/^SKIPPED\n//) { diff --git a/t/pragma/warning.t b/t/pragma/warning.t index 2e88311..598079e 100755 --- a/t/pragma/warning.t +++ b/t/pragma/warning.t @@ -85,6 +85,9 @@ for (@prgs){ # allow expected output to be written as if $prog is on STDIN $results =~ s/tmp\d+/-/g; $results =~ s/\n%[A-Z]+-[SIWEF]-.*$// if $Is_VMS; # clip off DCL status msg +# bison says 'parser error' instead of 'syntax error', +# various yaccs may or may not capitalize 'syntax'. + $results =~ s/^(syntax|parser) error/\L$1 error/mi; $expected =~ s/\n+$//; my $prefix = ($results =~ s/^PREFIX\n//) ; # any special options? (OPTIONS foo bar zap)