This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Correct the expected results for the first perlio warnings subtest.
[perl5.git] / t / lib / warnings / perlio
CommitLineData
0453d815
PM
1 perlio.c
2
3
4 Mandatory Warnings ALL TODO
5 ------------------
6 Setting cnt to %d
7 Setting ptr %p > end+1 %p
8 Setting cnt to %d, ptr implies %d
9
99ef548b 10
c4d88abd 11Invalid separator character %c%c%c in PerlIO layer specification %s
99ef548b
PM
12
13 open(F, ">:-aa", "bb")
14
15
c4d88abd 16Argument list not closed for PerlIO layer \"%.*s\""
99ef548b
PM
17
18 open(F, ">:aa(", "bb")
19
c4d88abd 20Unknown PerlIO layer \"%.*s\"
99ef548b
PM
21
22 # PerlIO/xyz.pm has 1;
23 open(F, ">xyz", "bb")
24
0453d815 25__END__
99ef548b 26
69dc7e4b
FC
27# perlio [PerlIO_find_layer]
28unshift @INC, sub {
29 return undef unless caller eq "main";
30 open my $fh, "<", \1;
31 $fh;
32};
33require Symbol; # doesn't matter whether it exists or no
34EXPECT
31f5e323
NC
35Recursive call to Perl_load_module in PerlIO_find_layer at - line 5.
36BEGIN failed--compilation aborted.
69dc7e4b
FC
37########
38
99ef548b
PM
39# perlio [PerlIO_parse_layers]
40no warnings 'layer';
41open(F, ">:-aa", "bb");
42use warnings 'layer';
43open(F, ">:-aa", "bb");
0ec158f4 44close F;
99ef548b 45EXPECT
c4d88abd 46Invalid separator character '-' in PerlIO layer specification -aa at - line 6.
99ef548b
PM
47########
48
49# perlio [PerlIO_parse_layers]
50no warnings 'layer';
51open(F, ">:aa(", "bb");
52use warnings 'layer';
53open(F, ">:aa(", "bb");
0ec158f4 54close F;
99ef548b 55EXPECT
c4d88abd 56Argument list not closed for PerlIO layer "aa(" at - line 6.
99ef548b
PM
57########
58
c162e49a 59--FILE-- PerlIO_test_dir/xyz.pm
99ef548b
PM
601;
61--FILE--
62# perlio [PerlIO_parse_layers]
63no warnings 'layer';
64open(F, ">:xyz", "bb");
2dc52cef 65use warnings 'layer';
99ef548b 66open(F, ">:xyz", "bb");
0ec158f4 67close F;
67efce40 68END { 1 while unlink "bb" } # KEEP THIS WITH THE LAST TEST.
99ef548b 69EXPECT
c4d88abd 70Unknown PerlIO layer "xyz" at - line 5.