summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2018-12-28 07:34:47 +0100
committerJim Meyering <meyering@fb.com>2018-12-28 09:02:07 -0800
commit15668f2c54d095b872cd06d78adde5a525a583e8 (patch)
tree1e5ce5b45780151da54375b0a50c9df297efa00d /tests
parentb18c0155f577d66fac4d12919dbfbf0bbfa8118e (diff)
downloaddiffutils-15668f2c54d095b872cd06d78adde5a525a583e8.tar.gz
tests: colors: avoid test failure on AIX 7
* tests/colors: Splice the argument into the printf format string.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/colors4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/colors b/tests/colors
index f0f6246..3f0139f 100755
--- a/tests/colors
+++ b/tests/colors
@@ -120,8 +120,8 @@ compare exp out || fail=1
# Before the fix in http://debbugs.gnu.org/22067,
# this test would trigger an infinite loop bug.
mkfifo fifo
-printf '%*s-a' 1000000 > a
-printf '%*s-b' 1000000 > b
+printf '%1000000s-a' > a
+printf '%1000000s-b' > b
head -c 10 < fifo > /dev/null &
diff --color=always ---presume-output-tty a b > fifo
test $? = 141 || fail=1