8 use Test::More tests => 8;
11 ok( binmode(STDERR), 'STDERR made binary' );
12 if ($Config{useperlio}) {
13 ok( binmode(STDERR, ":unix"), ' with unix discipline' );
15 ok(1, ' skip unix discipline for -Uuseperlio' );
17 ok( binmode(STDERR, ":raw"), ' raw' );
18 ok( binmode(STDERR, ":crlf"), ' and crlf' );
20 # If this one fails, we're in trouble. So we just bail out.
21 ok( binmode(STDOUT), 'STDOUT made binary' ) || exit(1);
22 if ($Config{useperlio}) {
23 ok( binmode(STDOUT, ":unix"), ' with unix discipline' );
25 ok(1, ' skip unix discipline for -Uuseperlio' );
27 ok( binmode(STDOUT, ":raw"), ' raw' );
28 ok( binmode(STDOUT, ":crlf"), ' and crlf' );