(was Re: PerlIO regerssion tests?)
[p5sagit/p5-mst-13.2.git] / t / io / binmode.t
CommitLineData
e940ddbb 1#!./perl -w
2
3BEGIN {
4 chdir 't' if -d 't';
5 @INC = '../lib';
6}
7
8
9use Test::More tests => 8;
10
11ok( binmode(STDERR), 'STDERR made binary' );
12ok( binmode(STDERR, ":unix"), ' with unix discipline' );
13ok( binmode(STDERR, ":raw"), ' raw' );
14ok( binmode(STDERR, ":crlf"), ' and crlf' );
15
16# If this one fails, we're in trouble. So we just bail out.
17ok( binmode(STDOUT), 'STDOUT made binary' ) || exit(1);
18ok( binmode(STDOUT, ":unix"), ' with unix discipline' );
19ok( binmode(STDERR, ":raw"), ' raw' );
20ok( binmode(STDERR, ":crlf"), ' and crlf' );