summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1998-10-26 09:08:00 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1998-10-26 09:08:00 +0000
commit2c88fa888f003d5ed662773b59e0a8b1ff819c61 (patch)
treeac45e28b60610ba50b7b93479049f9876e31d42a /t
parentbee8cd070729d5e43d142bdd15dbfc4300e23b39 (diff)
downloadperl-2c88fa888f003d5ed662773b59e0a8b1ff819c61.tar.gz
More robustness.
p4raw-id: //depot/cfgperl@2092
Diffstat (limited to 't')
-rwxr-xr-xt/comp/require.t2
-rwxr-xr-xt/op/misc.t2
-rwxr-xr-xt/pragma/subs.t2
-rwxr-xr-xt/pragma/warning.t3
4 files changed, 6 insertions, 3 deletions
diff --git a/t/comp/require.t b/t/comp/require.t
index 1959326281..0f3b97f2ba 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 b924f89847..f8bc215737 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 58b53ae293..dc272f6b25 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 2e88311c6c..598079ee84 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)