X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F12-fail.t;h=a311f4d827c9efac8b41ca05cb26661f3e28b930;hb=5a0bc53aa2c44509276facd97dc6bc98b277bae3;hp=78238bedeb40addb37c3c463b8ccf854f15c2cf4;hpb=c0662b43b1c86733553afed7453012f25c6360e9;p=catagits%2FTest-EOL.git diff --git a/t/12-fail.t b/t/12-fail.t index 78238be..a311f4d 100644 --- a/t/12-fail.t +++ b/t/12-fail.t @@ -13,7 +13,7 @@ $inc = "-I $inc" if $inc; open my $fh, '<', $filename or die $!; binmode( $fh, ':raw' ); my $content = <$fh>; - is( $content, ascii_string(), 'Data written to file is there when we look for it later' ); + is( $content, ascii_string(), 'Data written to file is there when we look for it later' ); } { @@ -31,7 +31,7 @@ $inc = "-I $inc" if $inc; { my ($dir, $file) = make_bad_file_3(); run_ok( "all_perl_files_ok( '$file' )", - qr/^not ok 1 - No incorrect line endings in '[^']*' \Qon line 9: [\r][\r][\r]/m, + qr/^not ok 1 - No incorrect line endings in '[^']*' \Qon line 1: [\r] /m, 'windows EOL found in tmp file 3' ); } @@ -57,14 +57,14 @@ sub run_ok { unlink $outfile; } -sub ascii_string { +sub ascii_string { my $o = ""; return $o x 3; } -sub make_raw_badfile { - my $tmpdir = tempdir( CLEANUP => 1 ); - my ( $fh, $filename ) = tempfile( DIR => $tmpdir, SUFFIX => '.tXt' ); +sub make_raw_badfile { + my $tmpdir = tempdir( CLEANUP => 1 ); + my ( $fh, $filename ) = tempfile( DIR => $tmpdir, SUFFIX => '.tXt' ); binmode $fh, ':raw'; print $fh ascii_string(); close $fh; @@ -124,8 +124,8 @@ sub new {\r my (\$class) = \@_;\r my \$self = bless { }, \$class;\r return \$self;\r -}\r\r\r\r - +}\r +\r \r 1;\r DUMMY