From: Jarkko Hietaniemi Date: Wed, 28 Oct 1998 10:33:36 +0000 (+0000) Subject: The "parse error" must be converted to "syntax error", X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1c5a9b9c42bc8485ae6ca52cd66d75dd8e8d746f;p=p5sagit%2Fp5-mst-13.2.git The "parse error" must be converted to "syntax error", just matching it aint' enough. p4raw-id: //depot/cfgperl@2108 --- diff --git a/t/op/misc.t b/t/op/misc.t index 6815f82..a8ba4c8 100755 --- a/t/op/misc.t +++ b/t/op/misc.t @@ -38,7 +38,7 @@ for (@prgs){ $results =~ s/\n+$//; # bison says 'parse error' instead of 'syntax error', # various yaccs may or may not capitalize 'syntax'. - $results =~ s/^(syntax|parse) error/\L$1 error/mi; + $results =~ s/^(syntax|parse) error/syntax 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 ae20857..4a6f09b 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 'parse error' instead of 'syntax error', # various yaccs may or may not capitalize 'syntax'. - $results =~ s/^(syntax|parse) error/\L$1 error/mi; + $results =~ s/^(syntax|parse) error/syntax 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 e6c37fd..cc4c2dd 100755 --- a/t/pragma/warning.t +++ b/t/pragma/warning.t @@ -87,7 +87,7 @@ for (@prgs){ $results =~ s/\n%[A-Z]+-[SIWEF]-.*$// if $Is_VMS; # clip off DCL status msg # bison says 'parse error' instead of 'syntax error', # various yaccs may or may not capitalize 'syntax'. - $results =~ s/^(syntax|parse) error/\L$1 error/mi; + $results =~ s/^(syntax|parse) error/syntax error/mi; $expected =~ s/\n+$//; my $prefix = ($results =~ s/^PREFIX\n//) ; # any special options? (OPTIONS foo bar zap)