summaryrefslogtreecommitdiff
path: root/t/comp
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1998-10-17 14:59:15 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1998-10-17 14:59:15 +0000
commitd91e2bdb4bc210a23427760819d26aa7951da955 (patch)
tree594f535487f28b45619e586477266c771dee959b /t/comp
parent33e3389819aa99d8aa0fbaa625ec3ae648f95a4f (diff)
downloadperl-d91e2bdb4bc210a23427760819d26aa7951da955.tar.gz
More robust yacc/bison failure output handling.
p4raw-id: //depot/cfgperl@2011
Diffstat (limited to 't/comp')
-rwxr-xr-xt/comp/require.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/comp/require.t b/t/comp/require.t
index 4120bb1ea5..1959326281 100755
--- a/t/comp/require.t
+++ b/t/comp/require.t
@@ -35,7 +35,9 @@ print "ok ",$i++,"\n";
# compile-time failure in require
do_require "1)\n";
-print "# $@\nnot " unless $@ =~ /syntax error/i;
+# bison says 'parser error' instead of 'syntax error',
+# various yaccs may or may not capitalize 'syntax'.
+print "# $@\nnot " unless $@ =~ /(syntax|parser) error/i;
print "ok ",$i++,"\n";
# successful require