Reverted r471. My alternative to --strip-trailing-cr didn't
work. This only affects the test target on systems without
GNU diff (rare), so I'm not too worried about it.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@480 788f1e2b-df1e-0410-8736-df70ead52e1b
commit46580147a5e4590e87bfe5e9b0f4c3ff50e59821
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
dateTue 9 Jan 2007, 07:40 (20 years ago)
parentedfac2b
tests/runtests.pl+1−2
@@ -23,8 +23,7 @@ sub test_results
2323 my $testname = $_[0];
2424 my $output = $_[1];
2525 my $norm = $_[2];
26− $output =~ s/\r$//; # remove DOS line endings if present
27− my $diffoutput = `diff $output $norm`;
26+ my $diffoutput = `diff --strip-trailing-cr $output $norm`;
2827 if ($diffoutput eq "")
2928 {
3029 print "PASSED\n";