4 use Test::More tests => 2;
5 use File::Temp qw( tempdir tempfile );
8 $ENV{PERL5LIB} = join ($Config{path_sep}, @INC);
11 my $tmpdir = tempdir( CLEANUP => 1 );
12 my ($fh, $filename) = tempfile( DIR => $tmpdir, SUFFIX => '.pL' );
13 print $fh "\xE1\xF3 how na\xEFve";
16 my (undef, $outfile) = tempfile();
18 `$^X -MTest::EOL -e "all_perl_files_ok( '$tmpdir' )" >$outfile 2>&1`;
21 my $out = do { local (@ARGV, $/) = $outfile; <> };
25 "ok 1 - No incorrect line endings in '$filename'\n1..1\n",
26 'no malformed unicode warnings',