13 ok( binmode(STDERR), 'STDERR made binary' );
14 if (find PerlIO::Layer 'perlio') {
15 ok( binmode(STDERR, ":unix"), ' with unix discipline' );
17 ok(1, ' skip unix discipline without PerlIO layers' );
19 ok( binmode(STDERR, ":raw"), ' raw' );
20 ok( binmode(STDERR, ":crlf"), ' and crlf' );
22 # If this one fails, we're in trouble. So we just bail out.
23 ok( binmode(STDOUT), 'STDOUT made binary' ) || exit(1);
24 if (find PerlIO::Layer 'perlio') {
25 ok( binmode(STDOUT, ":unix"), ' with unix discipline' );
27 ok(1, ' skip unix discipline without PerlIO layers' );
29 ok( binmode(STDOUT, ":raw"), ' raw' );
30 ok( binmode(STDOUT, ":crlf"), ' and crlf' );