tests: Make "read ISO-8859-1 as Auto,ISO-8859-1" failures easier to read.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 25 Apr 2013 05:15:05 +0000 (22:15 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 25 Apr 2013 05:26:34 +0000 (22:26 -0700)
By putting new-lines in the input and output, it becomes unnecessary to
scroll thousands of columns to the right to spot the differences.

tests/libpspp/u8-istream.at

index 985805d7ee0e6605bc24651e0c61a6167f53fda1..842e77336d0f1364ab479009bb1b91c19fa70f10 100644 (file)
@@ -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