X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2Ffresh_perl.t;h=980f5e53be526694db2e4cee7ba30708bdec6d1a;hb=cf2649810f00335bd657355d81bcc9384a620135;hp=d8cc862ff425d3212dc4ffc8ce77578df46d90d3;hpb=e344bad3baf2bf2e0915ab481c789fd45967284b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/run/fresh_perl.t b/t/run/fresh_perl.t index d8cc862..980f5e5 100644 --- a/t/run/fresh_perl.t +++ b/t/run/fresh_perl.t @@ -510,7 +510,7 @@ else { if ($x == 0) { print "" } else { print $x } } EXPECT -Use of uninitialized value in numeric eq (==) at - line 4. +Use of uninitialized value $x in numeric eq (==) at - line 4. ######## $x = sub {}; foo(); @@ -824,11 +824,12 @@ EXPECT foo at - line 1. ######## glob() bug Mon, 01 Sep 2003 02:25:41 -0700 <200309010925.h819Pf0X011457@smtp3.ActiveState.com> -lw +BEGIN { + eval 'require Fcntl'; + if ($@) { print qq[./"TEST"\n./"TEST"\n]; exit 0 } # running minitest? +} if ($^O eq 'VMS') { # VMS is not *that* kind of a glob. -print <<__EOF__; -./"TEST" -./"TEST" -__EOF__ +print qq[./"TEST"\n./"TEST"\n]; } else { print glob(q(./"TEST")); use File::Glob; @@ -839,11 +840,12 @@ EXPECT ./"TEST" ######## glob() bug Mon, 01 Sep 2003 02:25:41 -0700 <200309010925.h819Pf0X011457@smtp3.ActiveState.com> -lw +BEGIN { + eval 'require Fcntl'; + if ($@) { print qq[./"TEST"\n./"TEST"\n]; exit 0 } # running minitest? +} if ($^O eq 'VMS') { # VMS is not *that* kind of a glob. -print <<__EOF__; -./"TEST" -./"TEST" -__EOF__ +print qq[./"TEST"\n./"TEST"\n]; } else { use File::Glob; print glob(q(./"TEST")); @@ -853,3 +855,20 @@ print glob(q(./"TEST")); EXPECT ./"TEST" ./"TEST" +######## "Segfault using HTML::Entities", Richard Jolly , in perl-unicode@perl.org +-lw +# SKIP: use Config; $ENV{PERL_CORE_MINITEST} or " $Config::Config{'extensions'} " !~ m[ Encode ] # Perl configured without Encode module +BEGIN { + eval 'require Encode'; + if ($@) { exit 0 } # running minitest? +} +# Test case cut down by jhi +$SIG{__WARN__} = sub { $@ = shift }; +use Encode; +my $t = "\xE9"; +Encode::_utf8_on($t); +$t =~ s/([^a])//ge; +$@ =~ s/ at .*/ at/; +print $@ +EXPECT +Malformed UTF-8 character (unexpected end of string) in substitution (s///) at