11 eval {require Errno; Errno->import;};
15 ok( binmode(STDERR), 'STDERR made binary' );
16 if (find PerlIO::Layer 'perlio') {
17 ok( binmode(STDERR, ":unix"), ' with unix discipline' );
19 ok(1, ' skip unix discipline without PerlIO layers' );
21 ok( binmode(STDERR, ":raw"), ' raw' );
22 ok( binmode(STDERR, ":crlf"), ' and crlf' );
24 # If this one fails, we're in trouble. So we just bail out.
25 ok( binmode(STDOUT), 'STDOUT made binary' ) || exit(1);
26 if (find PerlIO::Layer 'perlio') {
27 ok( binmode(STDOUT, ":unix"), ' with unix discipline' );
29 ok(1, ' skip unix discipline without PerlIO layers' );
31 ok( binmode(STDOUT, ":raw"), ' raw' );
32 ok( binmode(STDOUT, ":crlf"), ' and crlf' );
35 skip "minitest", 1 if $ENV{PERL_CORE_MINITEST};
36 skip "no EBADF", 1 if (!exists &Errno::EBADF);
41 ok($! == &Errno::EBADF);