From: Ben Pfaff Date: Thu, 25 Apr 2013 05:15:05 +0000 (-0700) Subject: tests: Make "read ISO-8859-1 as Auto,ISO-8859-1" failures easier to read. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8a2e9e45296144909c3dfc5a7ee879e7bf71466;p=pspp tests: Make "read ISO-8859-1 as Auto,ISO-8859-1" failures easier to read. By putting new-lines in the input and output, it becomes unnecessary to scroll thousands of columns to the right to spot the differences. --- diff --git a/tests/libpspp/u8-istream.at b/tests/libpspp/u8-istream.at index 985805d7ee..842e77336d 100644 --- a/tests/libpspp/u8-istream.at +++ b/tests/libpspp/u8-istream.at @@ -115,9 +115,9 @@ AT_SETUP([read ISO-8859-1 as Auto,ISO-8859-1]) AT_KEYWORDS([u8_istream]) AT_CHECK([i18n-test supports_encodings ISO-8859-1]) buffer_size=`u8-istream-test buffer-size` -($PERL -e "print 'x' x int($buffer_size * 2.5)"; printf 'entr\351e\n') > input +($PERL -e 'print "xyzzy\n" x int('$buffer_size' * 2.5 / 7)'; printf 'entr\351e\n') > input (echo "Auto mode" - $PERL -e "print 'x' x int($buffer_size * 2.5)" + $PERL -e 'print "xyzzy\n" x int('$buffer_size' * 2.5 / 7)' printf 'entr\303\251e\n') > expout AT_CHECK([u8-istream-test read input Auto,ISO-8859-1], [0], [expout]) AT_CLEANUP