summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-12-30 17:46:09 +0100
committerJim Meyering <jim@meyering.net>2006-12-30 17:46:09 +0100
commitd2ec687c1c676562214e199545c11500d7ecfed1 (patch)
tree42579ea8f60ce6f992101dd0c6a37f12727288a4
parent457b4e69f57d3a023c97d0be18244a89e5fbe469 (diff)
downloadcoreutils-d2ec687c1c676562214e199545c11500d7ecfed1.tar.xz
* tests/misc/base64: Factor a long, repetitive string.
-rw-r--r--ChangeLog2
-rwxr-xr-xtests/misc/base643
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index accd2cb46..f8f917745 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2006-12-30 Jim Meyering <jim@meyering.net>
+ * tests/misc/base64: Factor a long, repetitive string.
+
* src/c99-to-c89.diff: Adjust remove.c offsets.
Clean up after the change of 2006-12-28.
diff --git a/tests/misc/base64 b/tests/misc/base64
index 02591da86..60332a044 100755
--- a/tests/misc/base64
+++ b/tests/misc/base64
@@ -37,8 +37,7 @@ use strict;
# Turn off localisation of executable's ouput.
@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-my $a39 = "YWFhY\nWFhYW\nFhYWF\nhYWFh\nYWFhY\nWFhYW\nFhYWF\n"
- . "hYWFh\nYWFhY\nWFhYW\nFh";
+(my $a39 = 'YWFh' x 13) =~ s/(.{5})/$1\n/g;
my @Tests =
(