8 die $@ if $@ and !is_miniperl();
14 ok( binmode(STDERR), 'STDERR made binary' );
16 skip('skip unix discipline without PerlIO layers', 1)
17 unless find PerlIO::Layer 'perlio';
18 ok( binmode(STDERR, ":unix"), ' with unix discipline' );
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);
26 skip('skip unix discipline without PerlIO layers', 1)
27 unless find PerlIO::Layer 'perlio';
28 ok( binmode(STDOUT, ":unix"), ' with unix discipline' );
30 ok( binmode(STDOUT, ":raw"), ' raw' );
31 ok( binmode(STDOUT, ":crlf"), ' and crlf' );
34 skip "no EBADF", 1 unless exists &Errno::EBADF;
36 no warnings 'io', 'once';
39 cmp_ok($!, '==', Errno::EBADF());