This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The "perlio: " prefix looks a little odd
[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
PM
10
11perlio: invalid separator character %c%c%c in layer specification list %s
12
13 open(F, ">:-aa", "bb")
14
15
16perlio: argument list not closed for layer \"%.*s\""
17
18 open(F, ">:aa(", "bb")
19
20perlio: unknown layer \"%.*s\"
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
PM
33EXPECT
34perlio: invalid separator character '-' in layer specification list -aa at - line 6.
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
PM
43EXPECT
44perlio: argument list not closed for layer "aa(" at - line 6.
45########
46
47--FILE-- PerlIO/xyz.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
7c2549db 58perlio: unknown layer "xyz" at - line 5.