This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make CORE->method work
[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
PM
26
27# perlio [PerlIO_parse_layers]
28no warnings 'layer';
29open(F, ">:-aa", "bb");
30use warnings 'layer';
31open(F, ">:-aa", "bb");
0ec158f4 32close F;
99ef548b 33EXPECT
c4d88abd 34Invalid separator character '-' in PerlIO layer specification -aa at - line 6.
99ef548b
PM
35########
36
37# perlio [PerlIO_parse_layers]
38no warnings 'layer';
39open(F, ">:aa(", "bb");
40use warnings 'layer';
41open(F, ">:aa(", "bb");
0ec158f4 42close F;
99ef548b 43EXPECT
c4d88abd 44Argument list not closed for PerlIO layer "aa(" at - line 6.
99ef548b
PM
45########
46
c162e49a 47--FILE-- PerlIO_test_dir/xyz.pm
99ef548b
PM
481;
49--FILE--
50# perlio [PerlIO_parse_layers]
51no warnings 'layer';
52open(F, ">:xyz", "bb");
2dc52cef 53use warnings 'layer';
99ef548b 54open(F, ">:xyz", "bb");
0ec158f4 55close F;
67efce40 56END { 1 while unlink "bb" } # KEEP THIS WITH THE LAST TEST.
99ef548b 57EXPECT
c4d88abd 58Unknown PerlIO layer "xyz" at - line 5.