Message-Id: <
20020811145224.GA23897@mirth.demon.co.uk>
p4raw-id: //depot/perlio@17795
my $tmp = "via$$";
-use Test::More tests => 16;
+use Test::More tests => 18;
my $fh;
my $a = join("", map { chr } 0..255) x 10;
close($fh);
+{
+package Incomplete::Module;
+}
+ $warnings = '';
+ no warnings 'layer';
+ ok( ! open($fh,">via(Incomplete::Module)", $tmp), 'open via Incomplete::Module will fail');
+ is( $warnings, "", "don't warn about unknown package" );
$warnings = '';
no warnings 'layer';
else if (SvIV(result) != 0)
return SvIV(result);
}
+ else {
+ goto push_failed;
+ }
if (PerlIOVia_fetchmethod(aTHX_ s, MYMethod(FILL)) ==
(CV *) - 1)
PerlIOBase(f)->flags &= ~PERLIO_F_FASTGETS;
Perl_warner(aTHX_ packWARN(WARN_LAYER),
"Cannot find package '%.*s'", (int) pkglen,
pkg);
+push_failed:
#ifdef ENOSYS
errno = ENOSYS;
#else