From: Olivier Mengué Date: Sat, 8 Sep 2012 06:46:17 +0000 (+0200) Subject: 12-fail.t: fix trailing spaces in the test source itself !!!!!! X-Git-Tag: 1.4~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FTest-EOL.git;a=commitdiff_plain;h=1ec979a85aff746de645b4670694940728a9fb7c 12-fail.t: fix trailing spaces in the test source itself !!!!!! Yes, 12-fail.t was so broken that it had trailing spaces... --- diff --git a/t/12-fail.t b/t/12-fail.t index 78238be..7a6f9f0 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' ); } { @@ -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;