14 ok( binmode(STDERR), 'STDERR made binary' );
15 if (find PerlIO::Layer 'perlio') {
16 ok( binmode(STDERR, ":unix"), ' with unix discipline' );
18 ok(1, ' skip unix discipline without PerlIO layers' );
20 ok( binmode(STDERR, ":raw"), ' raw' );
21 ok( binmode(STDERR, ":crlf"), ' and crlf' );
23 # If this one fails, we're in trouble. So we just bail out.
24 ok( binmode(STDOUT), 'STDOUT made binary' ) || exit(1);
25 if (find PerlIO::Layer 'perlio') {
26 ok( binmode(STDOUT, ":unix"), ' with unix discipline' );
28 ok(1, ' skip unix discipline without PerlIO layers' );
30 ok( binmode(STDOUT, ":raw"), ' raw' );
31 ok( binmode(STDOUT, ":crlf"), ' and crlf' );
34 skip "no EBADF", 1 if (!exists &Errno::EBADF);
39 ok($! == &Errno::EBADF);